2.10.12 • Published 4 years ago

jsboost v2.10.12

Weekly downloads
2
License
ISC
Repository
github
Last release
4 years ago

JS Boost

This library is a toolset that contains many different individual tools for developers to handle their project easier! However, since that the tools within the library are independent to each other, developers must select the tools they need and import them on their own! Their will be no central export mechanism that will collect everything together.

Use in native browser environment

All the tools can be accessed via JSDeliver. Developers can import the library on their own. Let's take Base64 for example! Base64 lib is locate at [root]/base64.esm.js. Developers can use following line to import this lib.

import * as Base64 from "https://cdn.jsdelivr.net/gh/JCloudYu/jsboost/base64.esm.js";

Note that the whole module registered in npm is browser compatible. So you can use following line if you want to install and control the version via npm.

import * as Base64 from "./node_modules/jsboost/base64.esm.js";

Use in NodeJS environment

Since that this library is completely written using es module syntax, using this library in NodeJS environment is a little bit tricky. Please follow the following steps to install and use this library!

  1. Install the package via following line.
    npm install jsboost
  2. Download the following loader script from here and name it as loader.mjs
  3. You can use this line
    import * as Base64 from "//jsboost/base64.esm.js";
    or this line
    import * as Base64 from "/node_modules/jsboost/base64.esm.js";
    in your code to import the tool you want ( Let's still take Base64 for example ).
  4. Run the script using following command
    node --experimental-modules --loader ./loader.mjs [PATH_TO_YOUR_BOOT_SCRIPT]

The loader script is used to tell the NodeJS environment to load the scripts ended with .esm.js as es modules not CommonJS modules. The reason why I'm not using .mjs is that I want to make the scripts to be directly identified by web browsers without the need to add additional configuration to make the server respond correct content-type header. 'cause it will be difficult to do that if you're not hosting your own web server!

Tool List

  • /version.esm.js
    A library that can parse semver compatible strings and compare the priorities among them.
  • /throttled-queue.esm.js
    A library that help developers to solve the rancing conditions among the asynchronous operations.

  • /base64.esm.js
    The library that can generate and parse strings encoded as base64 or base64url format

  • /base32.esm.js
    The library that can generate and parse strings encoded as base32hex format

  • /dom-event-emitter.esm.js
    An event emitter that provides interface that is similar to DOM Event object

  • /event-emitter.esm.js
    An implementation of NodeJS styled EventEmitter

  • /http-cookies.esm.js
    A library that allows developers to generate and parse raw cookies

  • /utf8string.esm.js
    A library that provides conversion between utf16 string (js string) and utf8 string

  • /web/load-module.esm.js
    A tiny function that provides a polyfill of Dynamic Import

  • /web/load-resource.esm.js
    A tiny function that allows developers to load batches of resources asynchronously.

2.10.12

4 years ago

2.10.11

4 years ago

2.10.10

4 years ago

2.10.9

4 years ago

2.10.7

4 years ago

2.10.8

4 years ago

2.10.6

4 years ago

2.10.5

4 years ago

2.10.4

4 years ago

2.10.3

4 years ago

2.10.1

4 years ago

2.10.2

4 years ago

2.10.0

4 years ago

2.9.3

4 years ago

2.9.2

4 years ago

2.9.1

4 years ago

2.9.0

4 years ago

2.8.5

4 years ago

2.8.4

4 years ago

2.8.3

4 years ago

2.8.2

5 years ago

2.8.1

5 years ago

2.8.0

5 years ago

2.7.2

5 years ago

2.7.1

5 years ago

2.7.0

5 years ago

2.6.0

5 years ago

2.5.0

5 years ago

2.4.4

5 years ago

2.4.3

5 years ago

2.4.2

5 years ago

2.4.1

5 years ago

2.4.0

5 years ago

2.3.1

5 years ago

2.3.0

5 years ago

2.2.8

5 years ago

2.2.7

5 years ago

2.2.6

5 years ago

2.2.5

5 years ago

2.2.4

5 years ago

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.11

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.5.5

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.3.4

5 years ago

1.3.3

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.14

5 years ago

1.2.13

5 years ago

1.2.12

5 years ago

1.2.11

5 years ago

1.2.9

5 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

0.9.9

5 years ago

1.2.2

5 years ago

0.9.8

5 years ago

1.2.1

5 years ago

0.9.7

5 years ago

1.2.0

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

0.9.6

5 years ago

0.9.5

5 years ago

1.0.26

5 years ago

0.9.4

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

0.9.3

5 years ago

1.0.15

5 years ago

0.9.2

5 years ago

0.9.1

5 years ago

0.9.0

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

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.3.4

5 years ago

0.3.2

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.10

6 years ago

0.1.9

6 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

0.0.1

6 years ago