ishantiw / path-contents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Build Status

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

About


Languages

Language:JavaScript 100.0%