1.8.1 • Published 3 years ago

@muffin-dev/js-helpers v1.8.1

Weekly downloads
78
License
MIT
Repository
gitlab
Last release
3 years ago

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

3 years ago

1.8.0

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.0

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.3

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.4.0-dev

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.2

5 years ago