1.0.3 • Published 5 years ago

@boyeborg/fizzbuzz v1.0.3

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
5 years ago

fizzbuzz

FizzBuzz CLI

Usage

Install using yarn:

yarn global add @boyeborg/fizzbuzz

or if you prefer npm:

npm install --global @boyeborg/fizzbuzz

Use fizzbuzz --help to display help text.

Onliner

The fizzbuzz problem can be solved using one line of code in nodejs:

console.log([...Array(101).keys()].slice(1).map(i => (i % 3 === 0 ? "Fizz" : "") + (i % 5 === 0 ? "Buzz" : "") || i).join("\n"));
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago