Skip to content

Latest commit

 

History

History
194 lines (151 loc) · 14.4 KB

File metadata and controls

194 lines (151 loc) · 14.4 KB

shieldsIO shieldsIO shieldsIO

WideImg

Máster en Programación FullStack con JavaScript y Node.js

JS, Node.js, Frontend, Backend, Firebase, Express, Patrones, HTML5_APIs, Asincronía, Websockets, Testing

Clase 72

Node.js Best Practices

Gestion de errores

Librerías de Logging

  • pino Extremely fast logger inspired by Bunyan.
  • winston Multi-transport async logging library.
  • console-log-level The most simple logger imaginable with support for log levels and custom prefixes.
  • storyboard End-to-end, hierarchical, real-time, colorful logs and stories.
  • signale Hackable console logger with beautiful output.

Librerías de Debugging / Profiling

  • ndb Improved debugging experience, enabled by Chrome DevTools.
  • ironNode Node.js debugger supporting ES2015 out of the box.
  • node-inspector Debugger based on Blink Developer Tools.
  • debug Tiny debugging utility.
  • why-is-node-running Node.js is running but you don't know why?
  • njsTrace Instrument and trace your code, see all function calls, arguments, return values, as well as the time spent in each function.
  • vstream Instrumentable streams mix-ins to inspect a pipeline of streams.
  • stackman Enhance an error stacktrace with code excerpts and other goodies.
  • locus Starts a REPL at runtime that has access to all variables.
  • 0x Flamegraph profiling.
  • ctrace Well-formatted and improved trace system calls and signals.
  • leakage Write memory leak tests.
  • llnode Post-mortem analysis tool which allows you to inspect objects and get insights from a crashed Node.js process.

Recursos

Aplicaciones isomórficas o universales

UMD

Build tools

  • docpad-plugin-umd Wrap specified JavaScript documents in the Universal Module Definition (UMD) allowing them to run in AMD, Require.js, CommonJS/Node.js and Vanilla environments automatically
  • grunt-umd Surrounds code with the universal module definition (MIT)
  • gulp-umd Gulp plugin for build JavaScript files as Universal Module Definition, aka UMD
  • grunt-urequire Grunt wrapper for uRequire
  • generator-umd An Yeoman Generator to create a basic UMD structure

Librerias isomórficas como ejemplo

Recursos

Variables del Entorno

Librerías

  • dotenv Loads environment variables from .env for nodejs projects.
  • cross-env Set environment variables cross-platform.

Recursos

Creando ejecutables

  • node-upstarter Easily create upstart services for your node apps
  • diable 😈 Daemonize the things out.
  • daemonize-process Daemonize the current Node.js process
  • daemonix A utility for creating daemons out of NodeJS applications.

Buffer

Streams

Child Process

Librerías

Recursos

Cluster

Recursos

Librerias:

Embed C/C++

Opciones Core

Librerías

Recursos