sindresorhus/resolve-from

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

Open

#8 创建于 2017年10月31日

在 GitHub 查看
 (7 评论) (6 反应) (0 负责人)JavaScript (14 fork)user submission
enhancementhelp wanted

仓库指标

Star
 (145 star)
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.

贡献者指南