1.1.3 • Published 9 years ago

require-resolver v1.1.3

Weekly downloads
1
License
MIT
Repository
-
Last release
9 years ago

Require Resolve

An auto curried function which will return a new function until the required file resolves.

const rr = require('require-resolve');
// This will return a new function
const scripts = rr('src/scripts');
// You can ommit the extension, this is just to clarity the example usage
const myScript = scripts('my-script.js');
const rr = require('require-resolve');
// This will return the exports of the resolved script
const myScript = rr('src/scripts/my-script');
1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago