Socket
Book a DemoInstallSign in
Socket

readers

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readers

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

1.0.3
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 03 May 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.