JSPM

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

Promise, then, on filepaths in a directory tree

Package Exports

  • wiothen

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 (wiothen) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

wiothen

Promise, then, on filepaths in a directory tree

This is BETA.

Usage

var wiothen = require('wiothen');

wiothen('.', function(filepath, next) {
  // Skip dotfiles, coverage, node_modules
  if (!/^(\.|coverage|node_modules)/
    .test(filepath))
    console.log('got filepath:', filepath);
  next();
})
.then(function () {
  console.log('no more filepaths');
})
.catch(function (err) {
  console.log('got error:', err.message);
  return;
});

Output:

got filepath: package.json
got filepath: index.js
got filepath: README.md
no more filepaths