open-index/open-npm huggingface dataset:
npm package: @msak.sugiyama/fizzbuzz
Description: A JavaScript implementation of FizzBuzz.
Author: Masaaki Sugiyama
Latest version: 1.0.0

# fizzbuzz

A JavaScript implementation of FizzBuzz.

## installation

```sh
$ npm install @mska.sugiyama/fizzbuzz
```

## Usage

### In JavaScript code

```js
const fizzbuzz = require('@mska.sugiyama/fizzbuzz')

fizzbuzz(1) // '1'
fizzbuzz(2) // '2'
fizzbuzz(3) // 'Fizz'
fizzbuzz(5) // 'Buzz'
fizzbuzz(15) // 'FizzBuzz'
```

### From the command line

```sh
$ npx fizzbuzz 1
1
$ npx fizzbuzz 2
2
$ npx fizzbuzz 3
Fizz
$ npx fizzbuzz 5
Buzz
$ npx fizzbuzz 15
FizzBuzz
```