FANDOM


Language

API

Node 8.x

Module/Object Description Type Remarks
File System provides an API for interacting with the file system in a manner closely modeled around standard POSIX functions module
Process provides information about, and control over, the current Node.js process. object
Console provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers. module

Node 4.x

JavaScript

OOP

  • Classes
  • Getting started with Node.js modules: require, exports, imports and beyond (August 12th 2016)
    • Use exports to:
      • Export named function. e.g. exports.area, exports.circunference
    • Use module.exports to:
      • If you want to export an object, class, function at the root level e.g. module.exports = Cat
      • If you want to return a single object that exposes multiple assignments. e.g. module.exports = {area: area, circumference: circunference};

Debugging

misc

Frameworks

MVC

Express

Libraries

nodemon

forever

PM2

node-time

node-formidable

node-iconv

  • https://github.com/bnoordhuis/node-iconv
  • Desc. : node.js iconv bindings
  • License :
  • Readings
    • iconv (Wikipedia)
      • a computer program and a standardized application programming interface (API) used to convert between different character encodings.

iconv-lite

urlencode

winston

morgan

generator

express-session

cookie-parser

EJS

Nodemailer

Passport

Tools

npm

  • https://www.npmjs.org/
  • Desc. : official package manager for Node.js
  • License : the Artistic License 2.0
  • Written in : JavaScript
  • References
    • Official documentation
    • package.json: Specifics of npm's package.json handling
    • semver: The semantic versioner for npm
      • hyphen ranges : x.y.z - a.b.c, x-ranges : 1.2.x 1.X 1.2.* *, tilde ranges : ~1.2.3 ~1.2 ~1, caret ranges : ^1.2.3 ^0.2.5 ^0.0.4
    • npm-scripts: How npm handles the "scripts" field

Commands

commands function manual remarks
npm ls List installed packages
npm view View registry info shows data about a package and prints it to the stream referenced by the outfd config, which defaults to stdout.
npm install Install a package
npm update Update all the packages listed to the latest version (specified by the tag config), respecting semver
npm prune Removes "extraneous" packages

nvm

  • https://github.com/creationix/nvm
  • Desc. : Node Version Manager - Simple bash script to manage multiple active node.js versions
  • License : The MIT License
  • Written in :