Packages: NodeJS

A table of some useful nodejs packages which I used in my projects.

  • body-parser
  • connect-flash
  • ejs
  • express
  • express-session
  • method-override
  • mongoose
  • passport
  • passport-local
  • passport-local-mongoose
  • request

| Package Name | Description/Use | Example Code | | ----------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | | faker | Generate massive amounts of fake contextual data | | | express | Fast, unopinionated, minimalist web framework | | | ejs | Embedded JavaScript templates | | | body-parser | Node.js body parsing middleware | | | method-override | Override HTTP verbs. Lets you use HTTP verbs such as PUT or DELETE in places where the client doesn’t support it. | | | mongoose | Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. | | | conect-flash | Flash message middleware for Connect. The flash is a special area of the session used for storing messages. Messages are written to the flash and cleared after being displayed to the user. The flash is typically used in combination with redirects, ensuring that the message is available to the next page that is to be rendered. | | | express-session | Simple session middleware for Express | | | passport | Passport is Express-compatible authentication middleware for Node.js. | | | passport-local | Local username and password authentication strategy for Passport. | | | passport-local-mongoose | Mongoose plugin that simplifies building username and password login with Passport. Passport-Local Mongoose will add a username, hash and salt field to store the username, the hashed password and the salt value. Additionally Passport-Local Mongoose adds some methods to your Schema. | | | request | Simplified HTTP request client. | |