get-directory-file-list

0.1.3 • Public • Published

get-directory-file-list

NPM version Build Status Coverage Status

a directory helper that returns a Promise containing an array of the files found in a directory ( not recursive )

table of contents

installation

npm install get-directory-file-list

api

/**
 * @param {string} directory an absolute path
 * @returns {Array}
 */
 function getDirectoryFileList( directory )

usage

var getDirectoryFileList = require( 'get-directory-file-list' )
var path = require( 'path' )

getDirectoryFileList( path.join( __dirname, 'a-directory' ) )
  .then(
    function ( files ) {
      ...
    }
  )
  .catch(
    function( err ) {
      ...
    }
  )

license

MIT License

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i get-directory-file-list

    Weekly Downloads

    4

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    30.9 kB

    Total Files

    21

    Last publish

    Collaborators

    • dentous