A public library of shared JavaScript utilities. These utilities are agnostic to environment -- they are suitable for use in Node.js and web browsers.
- Simple utilities (type checking, assertions, bit masking, etc)
- Data structures (decimals, days, enumerations, etc)
- Simple collections (queues, stacks, trees, etc)
- Specialized collections (priority queues, evicting lists, evicting maps, etc)
- Browse the code...
A companion library called @barchart/common-node-js contains utilities for exclusive use in Node.js environments (i.e. not suitable for use in browsers).
The code is documented with JSDoc. This will be used as the basis for formal documentation (coming soon).
This library has been published as a public module to NPM as @barchart/common-js.
npm install @barchart/common-js -S
Modern JavaScript language features are used. Some browsers may still require polyfills.
This software is provided under the MIT license.