Utilidades

Description

Just some simple JavaScript Utils.

Usage

Using NPM (Recommend)

Install Package

npm i utilidades

or

npm i https://github.com/201flaviosilva-labs/utilidades#v1.3.3

Import to the project

import { randomNumber } from "utilidades";

console.log(randomNumber(1, 20));

Using CDN (jsdelivr)

<script src="https://cdn.jsdelivr.net/npm/utilidades@1.3.3/build/utils.min.js"></script>
<script src="./your-js-file.js"></script>
// ./your-js-file.js
console.log(randomNumber(1, 20));

Available Commands

CommandDescription
npm installInstall project dependencies
npm run clearDelete the "build" and "types" and "docs" folder
npm run jsDocBuild a docs page based in the jsdoc
npm run typesBuild the types
npm run compileBuilds code bundle with production settings (minification, etc..)
npm run buildBundle the code, create the types and teh docs folder
npm run bumpUpdate lib in the npm

Links

Examples