没有合适的资源?快使用搜索试试~ 我知道了~
find-up:通过遍历父目录查找文件或目录
共19个文件
js:4个
ts:2个
md:2个
需积分: 10 0 下载量 129 浏览量
2021-05-26
07:48:14
上传
评论
收藏 11KB ZIP 举报
温馨提示
找出 通过遍历父目录查找文件或目录 安装 $ npm install find-up 用法 / └── Users └── sindresorhus ├── unicorn.png └── foo └── bar ├── baz └── example.js example.js const path = require ( 'path' ) ; const findUp = require ( 'find-up' ) ; ( async ( ) => { console . log ( await findUp ( 'unicorn.png' ) ) ; //=> '/Users/sindresorhus/unicorn.png' console .
资源推荐
资源详情
资源评论
收起资源包目录
find-up-main.zip (19个子文件)
find-up-main
fixture
directory-link 1B
foo
bar
.gitkeep 0B
baz.js 0B
qux.js 0B
file-link 6B
index.js 2KB
test.js 13KB
package.json 917B
index.test-d.ts 6KB
readme.md 4KB
.github
funding.yml 43B
workflows
main.yml 549B
security.md 179B
license 1KB
index.d.ts 4KB
.gitignore 23B
.npmrc 19B
.editorconfig 175B
.gitattributes 19B
共 19 条
- 1
资源评论
火影耀阳
- 粉丝: 30
- 资源: 4560
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功