JSPM

path-contents-asynch

1.0.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q35249F
  • License ISC

To get paths of all the files and folder under the given target path asynchronously

Package Exports

  • path-contents-asynch

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (path-contents-asynch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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