1.1.3 • Published 7 years ago

require-resolver v1.1.3

Weekly downloads
1
License
MIT
Repository
-
Last release
7 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

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago