JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 495
  • Score
    100M100P100Q94525F
  • License MIT

readable stream of file paths + stat objects

Package Exports

  • ls-stream
  • ls-stream/fs-base.js
  • ls-stream/fs-browser.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ls-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ls-stream

a readable stream of file and directories paths and entries.

var ls = require('ls-stream')

ls('.git')
    .on('data', console.log.bind(console))

API

ls([fs,] directory) -> ls stream

create a readable stream of entry objects.

will start emitting data on next tick unless paused.

users may optionally provide their own fs object if native fs is not available for whatever reason (e.g., in browser).

'data' entry object

{ path: "path/to/file-or-dir"
, stat: fs.Stat object }

license

MIT