require-proxy

1.1.0 • Public • Published

lets you use destructuring to require modules

probably needs --harmony-destructuring and --harmony-proxies

example:

const {
	
	// varname = require("modulename");
	modulename: varname,
	
	// shorthand = require("shorthand");
	shorthand,
	
	// validIdentifier = require("hyphenated-module");
	"hyphenated-module": validIdentifier,
	
} = require("require-proxy")(require);

Readme

Keywords

Package Sidebar

Install

npm i require-proxy

Weekly Downloads

0

Version

1.1.0

License

ISC

Last publish

Collaborators

  • epicgirl1998