jetpack-io
v0.1.0-alpha.5
Published
``` > npm install jetpack-io ```
Downloads
4
Readme
Jetpack SDK
> npm install jetpack-io
Example
import { cron, JetpackClient } from 'jetpack-io';
// Cronjob
cron(
'exampleCron',
'* * * * *',
() => {
console.log('executing exampleCron!');
},
);
const jetpackClient = new JetpackClient();
// Jetroutine
export const exampleJetroutine = jetpackClient.jetroutine(
'exampleJetroutine1', // unique name
(team) => `hello jet from team: ${team}!`,
);