Best libraries for node.js
Here is a growing selection of the most useful libraries for node.
Node JS Core modules
PATH Allow to work on path and urls. Split a path, take the file name... https://nodejs.org/api/path.html
FS : Allow to work on file to save file on disk... https://nodejs.org/api/fs.html
Libraries for Node.js
Express
CORS : Middleware to help make a CORS settings! https://github.com/expressjs/cors
Morgan : Http request logging Middleware Similar to the apache log, log the request that express made with the level of information you wish https://github.com/expressjs/morgan
Logging
Utilities
Lodash : the utility library for javascript
Http
Request && Request promise
Popular library to do http requests in an easy and powerful way.
can pipe the result to other requests or to a file stream...
https://github.com/request/request
It's port with promise powered by blue bird https://github.com/request/request-promise
Async & Promises
Async : Aynschronous call (a sort of lodash for asynchronous operation) http://caolan.github.io/async/docs.html#
Blue bird : Blue bird is the more popular promise library for node.js Though promise are in the core node.js language there are multiple arguments to keep using a library like blue bird.
Caching
Node Cache manager This library seems to be the more complete. The advantage of this caching library is that it decoupled caching storage from caching configuration so it is possible to cache in redis, memory, file system.... https://github.com/BryanDonovan/node-cache-manager
Memory cache (also node-cache in github) This library seems to be the more popular thanks to its simplicity Example implementation in that tuto https://github.com/ptarjan/node-cache
Express Redis cache Example implementation in that tuto https://github.com/rv-kip/express-redis-cache
Node Caching https://github.com/mape/node-caching
Node cache https://github.com/mpneuried/nodecache
Uploading
Multer Node.js middleware for handling
multipart/form-data
. > handle image upload more easily. Multer is based on busboy.
https://github.com/expressjs/multer
busboy File multi part upload parser
https://github.com/mscdex/busboy
gridfs-stream Mongodb file streamer to save with gridFS
https://github.com/aheckmann/gridfs-stream
node-formidable Parser for form and upload
Image manipulation
Jimp : Image processing in javascript without any external dependencies https://github.com/oliver-moran/jimp
Graphic magic : Image resizing...
http://aheckmann.github.io/gm/
Export, parser
XLS Parser XlS Parser
https://github.com/mgcrea/node-xlsx
Node excel Export : Export to excel https://github.com/functionscope/Node-Excel-Export
node Excel Export : Lees popular but the config seems more complete... and the doc is better
https://github.com/andreyan-andreev/node-excel-export
json2xls Transform a json to a xls with no settings at all (using "excel-export": "~0.3.11" in the background) https://github.com/rikkertkoppes/json2xls/commits/master
js-xls a js framework to parse xls, and more generally spreadsheet formats... https://github.com/SheetJS/js-xlsx
Error handling
pretty-error Display errors && error stack in a more elegant way
Templates
consolidate Consolidate template engines...to have a single API for all !
https://github.com/tj/consolidate.js/
Mongoose plugins
mongoose simple random add findOneRandom && findRandom to get random document
mongoose-autopopulate
mongoose-deep-populate
Last updated