「 get path dir/+child all file path 」
npm install files-list-sync
yarn add files-list-sync
const filesListSync = require('files-list-sync');
let results = filesListSync('./test.js');
// ['.editorconfig',
// '.gitattributes',
// '.gitignore',
// '.npmrc',
// '.travis.yml',
// '.yo-rc.json',
// 'files-list-sync.js',
// 'license',
// 'package.json',
// 'readme.md',
// 'test.js',
// 'yarn.lock' ]
name: | path |
---|---|
Type: | string |
Desc: | path file/dir |
name: | deep |
---|---|
Type: | number |string {'all'} |
Default: | 1 |
Desc: | how deep you want |
name: | ignore |
---|---|
Type: | Array |
Default: | ['.git', 'node_modules'] |
Desc: | ignore Dir name you want |
- dirs-list get dir path
- files-list async/await list of file
- translate-mds translate your md files
MIT © chinanf-boy