centinela-error-create
v1.0.7
Published
Centinela library to gestionate errors
Downloads
6
Readme
Get Centinela Library
Install
$ npm i centinela-error-create
Usage
const centinela = require('centinela-error-create');
async function centinelaCall(){
var obj = {
organizationId: 129,
name: "Error name",
description: "Error description",
severity: 2,
key: "yourKey"
}
await centinela.createError(obj)
.then((result) => console.log(result.success))
.catch((err) => console.log(err.message));
}
centinelaCall();
//=> 'Added successfully'
CLI
$ npm install --global centinela-error-create
$ centinela-error-create --help
Example
...\npm\node_modules\centinela-error-create\ $ cli 129 "Name of error" "Description of error" 4 "yourKey"
Added successfully
License
MIT © ASP ORT