0.0.1 • Published 8 years ago
require-copy v0.0.1
require-copy
Sets up a global require hook extension that allows you to require deep copies of objects, so modifications can't pollute the global scope.
Installation
npm install require-copy
Usage
Setting up the hook (in one place at the top of your app)
require('require-copy');
Using the extension
var someData = require.extensions.copy('../some/file.json');