Sudoo-Processor

Continuous Integration codecov npm version downloads

Data processor in TypeScript

Install

yarn add @sudoo/processor
# Or
npm install @sudoo/processor --save

Usage

Process can be load by SideEffect, Processor and Verifier functions.

import { AsyncDataHook } from "@sudoo/processor";

const processor: AsyncDataHook = AsyncDataHook.create();

processor.sideEffect.add(() => sendEmail());
processor.processor.add((data) => newData);
processor.verifier.add((data) => true);