Node.js libraries and modules you should use

Here is a growing selection of the most useful libraries for node.

Node JS Core modules


Libraries for Node.js

Express

Logging

Utilities

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.

http://bluebirdjs.com/

Caching

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

Image manipulation

http://aheckmann.github.io/gm/

Export, parser

  • XLS Parser XlS Parser

https://github.com/mgcrea/node-xlsx

https://github.com/andreyan-andreev/node-excel-export

Error handling

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

https://github.com/larryprice/mongoose-simple-random

  • mongoose-autopopulate

  • mongoose-deep-populate

Written on December 23, 2016