Skip to content

code: <dirs-list> most get all node_modules path 获得 所有 ** 的 目录路径 ✅

License

Notifications You must be signed in to change notification settings

chinanf-boy/dirs-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dirs-list Build Status codecov

get dir path list

中文 | english

Install

npm install dirs-list
yarn add dirs-list

Usage

const dirsList = require('dirs-list');

let res = await dirsList(__dirname, {match:["*node_modules"],ignore:["*.git"]})
//=> __dirname all node_modules, ignore *.git

API

dirsList(dir, options)

dir

name: dir
Type: string
Desc: dir path

options

match
name: match
Type: string|Array
Desc: match every, add the path
ignore
name: ignore
Type: string|Array
Desc: ignore some, pass the path

use by

License

MIT © chinanf-boy

About

code: <dirs-list> most get all node_modules path 获得 所有 ** 的 目录路径 ✅

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published