get-all-file
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i get-all-file

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

4.2 kB

Total Files

5

Last publish

Collaborators

  • dahong