@rawrs/processor
v1.0.9
Published
A set of abstract classes for defining data transformation and a multi-pass processing engine.
Downloads
14
Readme
@rawrs/processor
This is a TypeScript library that provides a file processing engine that will perform a multiple-pass workflow in order to transform files from one origin type to, ultimately, many different output types.
Installing and Basic Usage
To install, use npm: (optionally use --save as needed to preserve in your package.json)
npm install @rawrs/processorThen, you can import it as seen in any of the examples in examples/ or, simply, as follows:
import Processor from "@rawrs/processor";Look at the examples/ directory in the repository for further examples.
Development
Clone this repository and within it install the dependencies:
npm installYou can build with:
npm run buildAnd perform a linter run via:
npm run lintExamples
To run an example in the examples/ path, just invoke npx vite-node directly or use the npm run command as so:
npm run example simple.tsor
npx vite-node examples/simple.ts