path-contents
v1.1.0
Published
To get paths of all the files and folder under the given target path synchronously
Downloads
3
Maintainers
Readme
Path content explorer
This module helps you to find all the directories and files under the given target path with their full paths synchronously. To retrieve details asynchronously please use path-contents-asynch
For any clarifications please contact Ishan
Installation
npm install path-contents
Usage
var pathContent = require('path-contents');
var contents = pathContent.getAllContents("views");
console.log(contents);
//to display all the files
console.log('Files '+ contents.files);
//to display all folder and subfolders
console.log('Directories '+ contents.dirs);
Tests
npm test