babel-plugin-fizzbuzz
v0.2.0
Published
Babel Plugin for fizzbuzz
Downloads
5
Readme
babel-plugin-fizzbuzz
Babel Plugin for fizzbuzz
Why
Do you need a TensorFlow
for FizzBuzz?
Funny 😂
What you need is Babel
😎
Install
npm:
$ npm install --save-dev babel-plugin-fizzbuzz
yarn:
$ yarn add --dev babel-plugin-fizzbuzz
Usage
.babelrc
{
"plugins": ["babel-plugin-fizzbuzz"]
}
Examples
for (var i=0; i<100; i++) {
console.log(i)
}
↓ ↓ ↓ ↓ ↓ ↓
for (var i = 0; i < 100; i++) {
console.log(
i % 15 === 0 ? 'FizzBuzz' : i % 3 === 0 ? 'Fizz' : i % 5 === 0 ? 'Buzz' : i
)
}
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
License
MIT © akameco