0.0.64 • Published 5 years ago

@alcumus/alcumus-processor v0.0.64

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

Alcumus Processor

This is a processor developed by alcumus

Installation

npm i @alcumus/alcumus-processor

Usage examples

const { processor } = require('alcumus-processor');

processor('todo.add', async function ({payload}, {documents: [target]}) {
    target.todo = target.todo || [];
    target.todo.push(payload);
});