Just some simple JavaScript Utils.
npm i 201flaviosilva-utils
or
npm i https://github.com/201flaviosilva-labs/javascript-utils#v1.2.10
import { randomNumber } from "201flaviosilva-utils";
console.log(randomNumber(1, 20));
<script src="https://cdn.jsdelivr.net/npm/201flaviosilva-utils@1.2.9/build/utils.min.js"></script>
<script src="./your-js-file.js"></script>
// ./your-js-file.js
console.log(randomNumber(1, 20));
Command | Description |
---|---|
npm install |
Install project dependencies |
npm run clear |
Delete the "build" and "types" and "docs" folder |
npm run jsDoc |
Build a docs page based in the jsdoc |
npm run types |
Build the types |
npm run compile |
Builds code bundle with production settings (minification, etc..) |
npm run build |
Bundle the code, create the types and teh docs folder |
npm run bump |
Update lib in the npm |