UNPKG

@ashudev05/fizzbuzz

Version:

Displays the famous FizzBuzz series between the provided range

42 lines (25 loc) 827 B
## @ASHUdev05/fizzbuzz [![npm badge](https://img.shields.io/npm/v/@ashudev05/fizzbuzz?style=for-the-badge)](https://www.npmjs.com/package/@ashudev05/fizzbuzz) [![npm minified size](https://img.shields.io/bundlephobia/min/fizzbuzz?style=for-the-badge)](https://www.npmjs.com/package/@ashudev05/fizzbuzz) The official repository for my npm package Displays the famous FizzBuzz series between the provided range. ## Install ``` $ npm i @ashudev05/fizzbuzz ``` ## Usage ```js const tiny = require("@ashudev05/fizzbuzz"); tiny(1,5); //=> 1 //2 //Fizz //4 //Buzz tiny("Hi!"); //=> TypeError: A number is expected! :D // at tiny (/home/ashu/Desktop/test/node_modules/@ashudev05/fizzbuzz/index.js:2:73) // at Object.<anonymous> (/home/ashu/Desktop/test/index.js:2:1) ``` *** Copyright (c) 2021 ASHUTOSH KUMAR JHA