keyport-node
v1.0.1
Published
Official Node.js SDK for the live KeyPort public API
Maintainers
Readme
keyport-node
Official Node.js SDK for the live KeyPort public API.
Install
npm install keyport-nodeDirect API key usage
import { KeyPort } from 'keyport-node'
const client = new KeyPort('kp_live_xxx')
const result = await client.validate({ license_key: 'XXXX-XXXX-XXXX-XXXX' })JSON config file usage
const client = await KeyPort.fromConfigFile('./keyport.config.json')API key in code, rest from config
const client = await KeyPort.fromConfigFile('./keyport.config.json', {
apiKey: process.env.KEYPORT_API_KEY,
})Supported endpoints
validate(...)getLicense(...)
