没有合适的资源?快使用搜索试试~ 我知道了~
temp-write:将stringbufferstream写入随机临时文件
共16个文件
yml:2个
js:2个
ts:2个
需积分: 9 0 下载量 67 浏览量
2021-05-12
09:11:00
上传
评论
收藏 7KB ZIP 举报
温馨提示
临时写 将字符串/缓冲区/流写入随机临时文件 安装 $ npm install temp-write 用法 import fs from 'node:fs' ; import tempWrite from 'temp-write' ; const filePath = tempWrite . sync ( 'unicorn' ) ; //=> '/var/folders/_1/tk89k8215ts0rg0kmb096nj80000gn/T/4049f192-43e7-43b2-98d9-094e6760861b' fs . readFileSync ( filePath , 'utf8' ) ; //=> 'unicorn' tempWrite . sync ( 'unicorn' , 'pony.png' ) ; //=> '/var/folders/_1/tk89k8215ts0rg
资源推荐
资源详情
资源评论
收起资源包目录
temp-write-main.zip (16个子文件)
temp-write-main
index.test-d.ts 490B
.gitattributes 19B
.github
funding.yml 116B
security.md 179B
workflows
main.yml 436B
test.js 1KB
fixture-symlink 7B
license 1KB
index.d.ts 2KB
fixture
.gitkeep 0B
.npmrc 19B
.editorconfig 175B
.gitignore 23B
index.js 1KB
readme.md 2KB
package.json 881B
共 16 条
- 1
资源评论
Craig林
- 粉丝: 33
- 资源: 4459
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功