A client for working with the Cargo Alert Logic API.
This library uses @al/cargo as its HTTP provider interface.
Until the release of version 1.0.0 all current minor version increments may be backwards incompatible. Please bear this in mind when developing against this library. Should you have any further questions, please do not hesitate to contact us as [email protected]
npm install @al/cargo --save
var CargoClient = require('@al/cargo').CargoClient; //commonjs - e.g. node
import { CargoClient } from '@al/cargo'; //ES2015 - e.g. Angular, TS projects
Loads the library into memory and stays in an interactive node shell.
npm run interactive
NOTE - You must build the sources before running this command, see Building section below
npm test
The sources are written in Typescript and follow the tslint airbnb style.
To generate a production build
npm run build
To generate a development build
npm run build-dev
Builds will be be generated into a dist
folder and will contain commonjs and umd bundles that will be consumed depending on the module system in whichever environment you are using.