sindresorhus/resolve-from

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

Open

#8 geöffnet am 31. Okt. 2017

Auf GitHub ansehen
 (7 Kommentare) (6 Reaktionen) (0 zugewiesene Personen)JavaScript (145 Stars) (14 Forks)user submission
enhancementhelp wanted

Beschreibung

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.

Contributor Guide