1.0.4 • Published 2 years ago

@licq/file v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@licq/file

封装关于文件操作相关的方法

NPM version NPM downloads

安装

npm i --save-dev @licq/file

API

listFiles

获取文件夹下所有文件,包含目录

Returns: Promise<Array[]>
Since: v1.0.0

ParamTypeDescription
rootPathString绝对路径

Example

const file = require('@licq/file')
const res = await file.listFiles(__dirname)
// => eg: [{path: '/Users/ostwind/batch/',size: 0,isDir: true}, {path: '/Users/ostwind/batch/package.json',size: 470,isDir: false}]
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago