get-all-file
v0.0.2
Published
Get all file in the folder.
Downloads
3
Readme
getAllFile
Get all file in the folder.
Installation
yarn add get-all-file
// or
npm install get-all-file
Usage
import getAllFile from 'get-all-file';
const files = getAllFile('path');
// => [{name: 'a', suffix: 'js'}]
API
getAllFile(path, options?)
path
Type: string
Target folder path when get file.
options
Type: object
isDeep
Type: boolean
Default: false
Deep to get file when directory child.
prefix
Type: boolean
Default: false
Return child name with parent path.