1.0.2 • Published 6 years ago
fs-deep v1.0.2
fs-deep
目录结构递归器,获取指定深度的目录树结构
使用方法
const fsDeep = require('fs-deep');
const dir = fsDeep('app', { 'layer': 4 });NFT(dirPath, options)
dirPathString - 目录路径optionsObjectlayerNumber - 递归深度containArray - 仅包含指定文件或目录,与exclude互斥,优先级高于exclude(可选)excludeArray - 排除指定文件或目录,与contain互斥(可选)