require-copy

0.0.1 • Public • Published

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');

Readme

Keywords

Package Sidebar

Install

npm i require-copy

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mvegeto