0.1.3 • Published 5 years ago

get-directory-file-list v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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

0.1.3

5 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago