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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1
  • 0.0.0
    0

Package Sidebar

Install

npm i require-copy

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mvegeto