A package/library that exports a variety of utility functions that simplify building plugins and scripts for [Cronicle](https://cronicle.net)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 months ago | |
---|---|---|
.vscode | 6 months ago | |
data | 6 months ago | |
src | 6 months ago | |
.drone.template.yml | 6 months ago | |
.drone.yml | 6 months ago | |
.gitignore | 12 months ago | |
.npmignore | 6 months ago | |
.npmrc | 6 months ago | |
.nvmrc | 6 months ago | |
.prettierignore | 12 months ago | |
.prettierrc | 6 months ago | |
Makefile | 6 months ago | |
README.md | 6 months ago | |
package.json | 6 months ago | |
tsconfig.json | 6 months ago |
README.md
Cronicle Plugin Tools
This project is to provide some helper functions to a new NodeJS module that wishes to be a Cronicle Plugin.
Exported Members
The following list defines/describes the members that are exported by the @4is-cronicle/plugin-tools package:
- @4lch4/logger
- All exported members of the
@4lch4/logger
library are also exported by@4is-cronicle/plugin-tools
.
- All exported members of the
- Interfaces
- Top-Level Functions
initJob
- Initialize a Cronicle job. Returns the job input object read from STDIN.
- Returns an object of type IJobInput.
endJob
- Ends the execution of the job by writing the output to STDOUT using
JSON.stringify()
and then exiting the process using the code provided inoutput.code
. The exit code defaults to 0 unless otherwise specified. - Requires a parameter object of type IJobOutput.
- Ends the execution of the job by writing the output to STDOUT using
- Utility Class(es)
- IOUtil
- Provides the
readPipedInput
method for reading input from STDIN and parsing it as a JSON object.
- Provides the
- IOUtil