pfs:fs周围的一个小许诺包装器

时间:2021-05-08 23:47:57
【文件属性】:
文件名称:pfs:fs周围的一个小许诺包装器
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-08 23:47:57
nodejs wrapper filesystem promise JavaScript 聚苯硫醚 周围的一个小许诺包装器 安装 $ yarn add pfs # or npm $ npm install --save pfs 用 确切地说,您将如何使用fs 。 这是一个直接替换,可将任何基于回调的函数转换为Promise const fs = require ( 'pfs' ) // now uses promise fs . readFile ( 'my-file.txt' , 'utf-8' ) . then ( ... ) . catch ( ... ) // still works the same fs . readFileSync ( 'my-file.txt' , 'utf-8' ) // properties are also unchanged fs . constants . R_OK 执照
【文件预览】:
pfs-master
----.travis.yml(52B)
----index.js(1KB)
----package.json(711B)
----readme.md(956B)
----test()
--------index.js(1KB)
--------_runner.js(350B)
----LICENSE(1KB)
----.gitignore(13B)
----.npmrc(22B)
----yarn.lock(45KB)

网友评论