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 NameDescription/UseExample Code
fakerGenerate massive amounts of fake contextual data
expressFast, unopinionated, minimalist web framework
ejsEmbedded JavaScript templates: – Control flow with <% %> e.g. if else – Escaped output with <%= %> e.g. string output – Unescaped raw output with <%- %> e.g. input with html formatting
body-parserNode.js body parsing middleware
method-overrideOverride HTTP verbs. Lets you use HTTP verbs such as PUT or DELETE in places where the client doesn’t support it.
mongooseMongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.
conect-flashFlash 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-sessionSimple session middleware for Express
passportPassport is Express-compatible authentication middleware for Node.js.
passport-localLocal username and password authentication strategy for Passport.
passport-local-mongooseMongoose 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.
requestSimplified HTTP request client.