pilot-sdk
v0.2.0
Published
JavaScript SDK for the Pilot notification relay API
Maintainers
Readme
Pilot JavaScript SDK
npm install pilot-sdkUsage
const { Pilot } = require('pilot-sdk');
const pilot = new Pilot('pk_your_api_key');
await pilot.send('prod-errors', '[error] db connection failed');send() throws an Error on failure with the API error message.
