fiterr
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

fiterr - file and dir iterator

Pass your file and directory list to the fiterr function as dirs and files key of config object. Pass 2 utility functions, ondir and onfile, that will come into play when fiterr will encounter a directory or file respectively.

const fiterr = require("fiterr")

const config = {
  dirs: ["./src", "./utils"],
  ondir: function () {
    console.log("do something")
  },
  files: ["./package.json", "./types.d.ts"],
  onfile: function () {
    console.log("do something")
  },
}

fiterr(config)

Package Sidebar

Install

npm i fiterr

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

19.8 kB

Total Files

10

Last publish

Collaborators

  • asuka-405