0.0.35 • Published 6 years ago

vamtiger-get-directory-content v0.0.35

Weekly downloads
48
License
MIT
Repository
github
Last release
6 years ago

VAMTIGER Get Directory Content

Get a list of all entries for a defined directory path.

Installation

VAMTIGER Get Directory Content can be installed using npm or yarn:

npm install --save vamtiger-get-directory-content

or

yarn add vamtiger-get-directory-content

Usage

Import or require a referece to VAMTIGER Get Directory Content:

import getDirectoryContent from 'vamtiger-get-directory-content';

or

const getDirectoryContent = require('vamtiger-get-directory-content').default;

Reference an array of file/directory entries for defined directory path:

getDirectoryContent('some/directory/absolute/path')
    .then(handleResult)
    .catch(handleError);

Since VAMTIGER Get Directory Content returns a Promise, the result can be more conveniently referenced within an async function:

async someAsyncFunction function() {
    const directoryContent = await getDirectoryContent('some/directory/absolute/path');
}
0.0.35

6 years ago

0.0.34

6 years ago

0.0.33

6 years ago

0.0.32

6 years ago

0.0.31

6 years ago

0.0.30

6 years ago

0.0.29

6 years ago

0.0.28

6 years ago

0.0.27

6 years ago

0.0.26

6 years ago

0.0.25

6 years ago

0.0.24

6 years ago

0.0.22

6 years ago

0.0.21

6 years ago

0.0.11

6 years ago