1.0.3 • Published 7 years ago

readers v1.0.3

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

Readers

Readers is a folder traversal package, Can be more simple to load the file into your Node.js project.

example:

npm install --save readers

'use strict';
const readers = require("readers");

readers('folder', options, (files) => {
    console.log(files)
})

readers(path, {options}, callback)

Path is string or array, more. callback return a object.

// example array:
readers([dirname, '../', '../../other'], options, callback)

// example string:
readers(dirname, '../', '../../other', options, callback)

// example string and array:
readers(dirname, '../', ['./a', './b'], options, callback)

options:

  • ignores Array File filtering
  • every Boolean Read subfolders
  • callbackOptions Object
    • relative Boolean returns relative path
    • name Boolean returns file name
    • extension Boolean returns file extension
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago