sindresorhus/resolve-from

From version Node v8.9.0, require.resolve() accepts custom paths

Open

#8 aberto em 31 de out. de 2017

Ver no GitHub
 (7 comments) (6 reactions) (0 assignees)JavaScript (145 stars) (14 forks)user submission
enhancementhelp wanted

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.

Guia do colaborador