sindresorhus/resolve-from
View on GitHubFrom version Node v8.9.0, require.resolve() accepts custom paths
Open
#8 opened on Oct 31, 2017
enhancementhelp wanted
Repository metrics
- Stars
- (145 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
See the new require.resolve.paths(request) and the updated require.resolve(request[, options]).
resolve-from can use these new exposed functions instead of accessing private functions of Module.
Of course, only when they are available.