1.8.1 • Published 4 years ago
@muffin-dev/js-helpers v1.8.1
Muffin Dev for Node - JS Helpers
This module contains a set of utilities for JavaScript.
Installation
In browser
Just download the js-helpers.min.js
file, and import it in your we pages:
<script src="js-helpers.min.js"></script>
With Node JS
Install it locally with NPM by using the following command:
npm i @muffin-dev/js-helpers
Usage
In browser
Import the library in your web page with the <script>
tag, and use the JSHelpers
global variable to use the library:
<script src="js-helpers.min.js"></script>
<script>
// Will log "00127" in your browser console
console.log(JSHelpers.leading0(127, 5));
</script>
With Node JS
const JSHelpers = require('@muffin-dev/js-helpers');
// OR, if you need only a specific method
// const leading0 = require('@muffin-dev/js-helpers').leading0;
// Will log "00127" in your terminal
console.log(JSHelpers.leading0(127, 5));
Documentation
Tools
Helpers
1.8.1
4 years ago
1.8.0
4 years ago
1.7.2
4 years ago
1.7.1
5 years ago
1.7.0
5 years ago
1.6.0
5 years ago
1.5.1
5 years ago
1.5.0
5 years ago
1.4.3
5 years ago
1.4.2
5 years ago
1.4.1
5 years ago
1.4.0
5 years ago
1.4.0-dev
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
0.1.14
5 years ago
0.1.13
5 years ago
0.1.12
5 years ago
0.1.11
5 years ago
0.1.10
5 years ago
0.1.9
5 years ago
0.1.8
6 years ago
0.1.7
6 years ago
0.1.6
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.0.2
6 years ago