没有合适的资源?快使用搜索试试~ 我知道了~
resolve-cwd:从当前工作目录解析类似于`require.resolve()`之类的模块的路径
共15个文件
js:3个
md:2个
ts:2个
需积分: 12 0 下载量 186 浏览量
2021-05-26
07:54:35
上传
评论
收藏 6KB ZIP 举报
温馨提示
解析-cwd 像一样解析模块的路径,但是从当前工作目录中解析 安装 $ npm install resolve-cwd 用法 const resolveCwd = require ( 'resolve-cwd' ) ; console . log ( __dirname ) ; //=> '/Users/sindresorhus/rainbow' console . log ( process . cwd ( ) ) ; //=> '/Users/sindresorhus/unicorn' console . log ( resolveCwd ( './foo' ) ) ; //=> '/Users/sindresorhus/unicorn/foo.js' 原料药 resolveCwd(moduleId) 像require() ,在找不到模块时引发。 resolveCwd.sile
资源推荐
资源详情
资源评论
收起资源包目录
resolve-cwd-main.zip (15个子文件)
resolve-cwd-main
index.test-d.ts 168B
.gitattributes 19B
.github
funding.yml 47B
security.md 179B
workflows
main.yml 450B
test.js 387B
license 1KB
index.d.ts 1KB
fixture
fixture.js 0B
.npmrc 19B
.editorconfig 175B
.gitignore 23B
index.js 208B
readme.md 2KB
package.json 737B
共 15 条
- 1
资源评论
两只妖精同上树
- 粉丝: 30
- 资源: 4747
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功