🤬
32 lines | ISO-8859-1 | 751 bytes

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

Oleksandr Khotemskyi

Copyright (c) 2018 Oleksandr Khotemskyi

Code released under the MIT license.

Please wait...
Page is in error, reload to recover