npm i @includedaniel/temperature-conversor
yarn add @includedaniel/temperature-conversor
Usage:
//module
import { temperatureConversor } from "@includedaniel/temperature-conversor"
console.log(temperatureConversor("C", "F", 30)) // 86//commomjs
const {temperatureConversor,} = require("@includedaniel/temperature-conversor")
console.log(temperatureConversor("C", "F", 30)) // 86Running tests:
- Run
yarn testto execute the tests and export the reports to/coveragefolder
Running lint:
- Run
yarn lintto 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 formatto format the code according to established standards - Run
yarn type-checkto check the types in your code
Running rollup:
- Run
yarn buildto execute the rollup - Link for commands line flags of rollup