0.0.9 • Published 2 years ago
abler-fs-hook v0.0.9
彭彭自用包:FS HOOK
【注意】已废弃,abler-util包含了 fs-promisify,而 fshook 包含在 abler-oss 中
包括两个工具:
fs-hook
为fs和path模块的常用函数建立挂钩机制
fs-promisify
将fs和path模块的常用函数promise化,由回调方式改为返回 Promise
安装
npm i abler-fs-hook@latest -s
引用
const {fshook, promisifiedFs} = require("abler-fs-hook");
const {fshook} = require("abler-fs-hook");
const fsBaseHook = require("abler-fs-hook").fshook;
const {promisifiedFs} = require("abler-fs-hook");
const pfs = require("abler-fs-hook").promisifiedFs;