@fal-works/mere-file-transformer
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

mere-file-transformer

Tiny library for transforming multiple files asynchronously.

  • Returns Promise.
  • Uses Node.js stream API.
  • stream.Transform needs to be prepared (consider using replacestream).

API

const transformFile: (rules: Rule[] | Rule) => (path: string) => Promise<void>;
const transformFiles: (rules: Rule[] | Rule) => (globPattern: string) => Promise<void>;

Here Rule is any function that returns stream.Transform.

Readme

Keywords

none

Package Sidebar

Install

npm i @fal-works/mere-file-transformer

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

6.53 kB

Total Files

10

Last publish

Collaborators

  • fal-works