Skip to content

SeanJM/require-resolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages