没有合适的资源?快使用搜索试试~ 我知道了~
linkfs:重写文件系统`fs`路径
共15个文件
ts:4个
json:3个
npmignore:1个
需积分: 12 0 下载量 124 浏览量
2021-03-11
19:30:48
上传
评论
收藏 8KB ZIP 举报
温馨提示
链接文件 重定向文件系统路径。 npm install --save linkfs import { link } from 'linkfs' ; import { fs } from 'memfs' ; fs . writeFileSync ( '/foo' , 'bar' ) ; const lfs = link ( fs , [ '/foo2' , '/foo' ] ) ; console . log ( lfs . readFileSync ( '/foo2' , 'utf8' ) ) ; // bar 参考 link(fs, rewrites) 返回带有重定向文件路径的类似fs的新对象。 fs是类似fs的源对象。 rewrites是一个2元组或2元组的数组,其中每个2元组具有[from, to] 。 from新的虚拟路径; 和to是fs文件系统中的现有路径。 const
资源推荐
资源详情
资源评论
收起资源包目录
linkfs-master.zip (15个子文件)
linkfs-master
src
index.ts 4KB
__tests__
index.test.ts 2KB
.babelrc 97B
.npmignore 151B
demo
example.ts 215B
multiple-rewrites.ts 452B
.travis.yml 332B
gulpfile.js 374B
tsconfig.json 487B
LICENSE 1KB
README.md 1KB
renovate.json 202B
.gitignore 85B
package.json 2KB
.nvmrc 7B
共 15 条
- 1
资源评论
帝哲
- 粉丝: 36
- 资源: 4669
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- comment.block.documentation.rust
- there is no way to distinguish perfectly
- 数据库管理工具:dbeaver-ce-24.0.2-x86-64-setup.exe
- Objective-C.tmLanguage
- 数据库管理工具:dbeaver-ce-24.0.2-macos-x86-64.dmg
- Delphi 12 控件之StyleControls 5.77.7z
- 苹果CMSV10红色自适应网站模板
- 数据库管理工具:dbeaver-ce-23.3.5-stable.x86-64.rpm
- SAP 消息号C6013解决方案
- C#入门必看的实例程序100个,含全部源代码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功