🤬
Enable build support by adding .buildspec.yml
LICENSE Loading last commit info...
README.md
index.d.ts
index.js
index.ts
package-lock.json
package.json
tsconfig.json
README.md

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