1.0.4 • Published 2 years ago
directory-map v1.0.4
Directory Map
Directory mapping for Node.js
npm i directory-map
Usage
const dirmap = require('directory-map');
var map = dirmap.resultArray(__dirname, {
maxDepth: 4
});
console.log(map);
const dirmap = require('directory-map');
var map = dirmap.resultObject(__dirname, {
maxDepth: 4
});
console.log(map);
Options
Name | Description |
---|---|
maxDepth | Maximum directory depth |