# Módulos en NPM
- Creating and Publishing a Node.js Module
- Creación de Paquetes NPM
- Node.js docs. Modules: ECMAScript modules (opens new window)
# Best Practices
- Best practice: Specify global dependencies in your gulpfile (opens new window)
- Node.js — How to test your new NPM module without publishing it every 5 minutes (opens new window)
- Best practice: Better local require() paths for Node.js (opens new window):
var Article = require('../../../models/article');
1When 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');
1
var Article = require('../../../models/article');
1Those suck for maintenance and they're ugly.var Article = require('../../../models/article');
1