click-send-nodejs-precompiled
v1.0.2
Published
Non official wrapper for click-send-nodejs that comes precompiled
Downloads
971
Maintainers
Readme
ClickSend NodeJs Compiled
The official ClickSend npm package does not come compiled.
See this issue. ¯_(ツ)_/¯
This unofficial package simply pulls the package at the version in package.json and compiles it. Still exports the typescript types.
The official package uses request which has been unmaintained for 5 years and suffers this cve. This package forces it to use @cypress/request which is patched.
"request": "npm:@cypress/request@^3.0.5",Usage
import { SMSApi } from "click-send-nodejs-precompiled";
const clickSend = new SMSApi(
process.env.CLICKSEND_USERNAME!,
process.env.CLICKSEND_API_KEY!
);
const smsCollection = {
messages: [
{
from: "from",
body: "message",
to: "+614...",
},
],
};
await clickSend.smsSendPost(smsCollection);