sindresorhus/resolve-from

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

Open

#8 aperta il 31 ott 2017

Vedi su GitHub
 (7 commenti) (6 reazioni) (0 assegnatari)JavaScript (14 fork)user submission
enhancementhelp wanted

Metriche repository

Star
 (145 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor