Where to find JavaScript utilities you might need. Often times I have found myself having to search stackoverflow for an obscure utility, or just default to writing my own because finding one on NPM that works properly would be energy consuming. So this list hopes to list out as many utilities as possible and where you can find them, to speed up coding your project!
As an additional note, these are basically the libraries you should learn to give you an edge in terms of speed when getting things done. They are typically long-standing and "stable" APIs, and learning them will be a skill you could transfer to any JavaScript or Node.js project.
Try some of these to see if they include what you need. If not, then try below. If we are missing something for which you find a solution, please send us a PR!
- chunk a string into equal sized chunks
- convert between string cases
- string diff
- utf conversions
- chunk an array into equal sized chunks
- shuffle array
- random number between min and max
- probable prime test
- exact prime test
- https://github.com/soatok/constant-time-js
- generic BigInt functionality
- random bigint between min and max
- cryptographically secure bigints
- https://github.com/mixu/perfect
- https://github.com/paulmillr/noble-hashes
- https://github.com/3rd-Eden/node-hashring
- https://github.com/dashpay/x11-hash-js
- https://github.com/search?l=JavaScript&p=2&q=hash-algorithm&type=Repositories
- https://github.com/MatthewBarker/hash-string/blob/master/source/hash-string.js
- https://github.com/kornelski/bcrypt/blob/master/bCrypt.js
- https://github.com/bigeasy/hash
- https://github.com/codefrom/cryptonight-js/blob/master/lib/skein.js
Some specification papers. SHA3, BLAKE3
- parsing csvs
- stringify array of records to csv
- working with spreadsheets
- diff and patch json objects
- streaming parse large json files
- array diffing
- streaming parse large XML files
- https://github.com/nashwaan/xml-js
- basic yaml functions
- streaming form data parser
- terminal text/string styling
- terminal ui
- https://github.com/termstandard/colors
- stdlib for file handling
- TinyColor - Fast, small color manipulation and conversion for JavaScript.
- PleaseJS - JavaScript Library for creating random pleasing colors and color schemes.
- oauth2
- tls
First, some notes.
- webpage rendering
- fetch API
- quadratic residue prng (not secure)