cspam.js
Simple JS API client for crash.fyi
TypeScript typings are included
Supported all base methods from crash.fyi API:
- Get inbox
- Get message
- Get raw message source
- Delete message
- Purge (wipe) inbox
Small example:
import { cspamAPIClient } from ('./index.js')
const client = new cspamAPIClient('https://crash.fyi:443/'); // your base url
const inbox = await client.mailbox('inboxname')
const message = await client.message('inboxname', inbox[0].id)
await client.deleteMessage('inboxname', inbox[0].id)
Author
Copyright and License
Copyright (c) 2018 Oleksandr Khotemskyi
Code released under the MIT license.