Módulos en NPM
Módulos en NPM
Best Practices
- Best practice: Specify global dependencies in your gulpfile
- Node.js — How to test your new NPM module without publishing it every 5 minutes
- Best practice: Better local require() paths for Node.js:
- When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
var Article = require('../../../models/article');
Those suck for maintenance and they’re ugly.
- When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like: