1.0.0 • Published 12 months ago

@takumadnl/fizzbuzz v1.0.0

Weekly downloads
49
License
MIT
Repository
-
Last release
12 months ago

fizzbuzz

A JavaScript implementation of FizzBuzz

Installation

npm install @takumadnl/fizzbuzz

Usage

In JavaScript code

const fizzbuzz = require('@takumadnl/fizzbuzz')

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

From the command line

$ npx fizzbuzz 1
1
$ npx fizzbuzz 2
2
$ npx fizzbuzz 3
Fizz
$ npx fizzbuzz 5
Buzz
$ npx fizzbuzz 15
FizzBuzz
1.0.0

12 months ago