path-contents-asynch

1.0.4 • Public • Published

Path content explorer

This module helps you to find all the directories and files under the given target path with their full paths asynchronously. To retrieve details synchronously please use path-contents

For any clarifications, please contact Ishan

Build Status

Installation

npm install path-contents-asynch

Usage

  var pathContentAsynch = require('path-contents-asynch');
  var dir = './foo';
  var contents = pathContentAsynch(dir).then((result) => {
    //to display all the content
    console.log(result);
    //to display all the files
    console.log('Files '+ result.files);
    //to display all folder and subfolders
    console.log('Directories '+ result.dirs);
    });

Tests

npm test

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i path-contents-asynch

    Weekly Downloads

    3

    Version

    1.0.4

    License

    ISC

    Last publish

    Collaborators

    • ishantiw