npm i @includedaniel/fibonacci
yarn add @includedaniel/fibonacci
Usage:
//module
import fibonacci from '@includedaniel/fibonacci'
console.log(fibonacci(25)) // 75025
//commomjs
const fibonacci = require('@includedaniel/fibonacci')
console.log(fibonacci(25)) // 75025
Running tests:
- Run
yarn test
to execute the tests and export the reports to/coverage
folder
Running lint:
- Run
yarn lint
to execute the eslint to fix and find problems in your code - want to know more about eslint commands? Follow the link
Running prettier:
- Run
yarn format
to format the code according to established standards - Run
yarn type-check
to check the types in your code
Running rollup:
- Run
yarn build
to execute the rollup - Link for commands line flags of rollup