Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thombruce/fizzbuzz
FizzBuzz!
https://github.com/thombruce/fizzbuzz
Last synced: 20 days ago
JSON representation
FizzBuzz!
- Host: GitHub
- URL: https://github.com/thombruce/fizzbuzz
- Owner: thombruce
- License: mit
- Created: 2021-09-20T01:18:25.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-26T17:33:46.000Z (about 2 years ago)
- Last Synced: 2024-11-11T22:11:20.248Z (2 months ago)
- Language: JavaScript
- Homepage: https://thombruce.github.io/fizzbuzz
- Size: 12.5 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FizzBuzz
## Installation
### Global Installation
```sh
npm install -g https://github.com/thombruce/fizzbuzz.git
```### Project Installation
```sh
npm install https://github.com/thombruce/fizzbuzz.git
``````js
const fizzbuzz = require('@thombruce/fizzbuzz')
```## Usage
### JavaScript Usage
To return an array of standard rules FizzBuzz values from 1 to 100:
```js
fizzbuzz()
```With options:
```js
fizzbuzz({ 3: 'Fizz', 5: 'Buzz', 13: 'Foo' }, -15, 500)
```### Command Line Usage
Standard FizzBuzz from 1 to 100:
```sh
fizzbuzz
```With options:
```sh
fizzbuzz --terms.3=Fizz --terms.5=Buzz --terms.13=Foo --from=-15 --to=500
```