1.0.2 • Published 5 years ago

node-file-oper v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

library

node环境操作文件小工具

引入

npm install node-file-oper -save

const fileOper = require('node-file-oper');

调用

方法参数说明
readFloderfilePath, callbackfilePath:文件夹路径;callback:对文件操作的回调函数
writedir, name, datadir:写入到哪个文件夹下;name:文件名称;data:写入文件的数据
deldir, typedir:删除文件路径;type:要删除的文件类型