1.4.1 • Published 6 years ago

files-list v1.4.1

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

files-list Build Status

「 get path dir/+child all file path 」

Install

npm install files-list
yarn add files-list

Usage

const filesList = require('files-list');

(async () => {
    let results = await filesList('./test.js')
//  ['.editorconfig',
//   '.gitattributes',
//   '.gitignore',
//   '.npmrc',
//   '.travis.yml',
//   '.yo-rc.json',
//   'files-list.js',
//   'license',
//   'package.json',
//   'readme.md',
//   'test.js',
//   'yarn.lock' ]
});)

filesList.sync() is sync

API

filesList(path, options)

path

name:path
Type:string
Desc:path file/dir

options

deep
name:deep
Type:number | string{'all'}
Default:1
Desc:how deep you want
ignore
name:ignore
Type:Array
Default:['.git', 'node_modules']
Desc:ignore Dir name you want

filesList.sync(path, options)

split the code to files-list-sync

cancat

Use by

License

MIT © chinanf-boy

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago