sindresorhus/resolve-from
From version Node v8.9.0, require.resolve() accepts custom paths
開放
#8 建立於 2017年10月31日
enhancementhelp wanted
倉庫指標
- 星標
- (145 顆星)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
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.