1.0.5 • Published 10 years ago

node-include v1.0.5

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

node-include

This module replaces require so you can require files relative to the root of your project.

// server.js
global.include = require('node-include');

// some-file.js
var anotherFile = include('/root/relative/path');

This would require the file located at the path 'root/relative/path' relative to the base directory of your project (under the assumption that server.js is in the root directory).

1.0.5

10 years ago

1.0.4

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.1

10 years ago