require-copy
v0.0.1
Published
require() a copy of your module, so modifications don't pullute the global namespace
Downloads
10
Readme
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');