spamwatch-ts
v1.0.0
Published
A TypeScript SpamWatch API client written using Deno and converted to a npm package
Downloads
54
Maintainers
Readme
SpamWatch API TypeScript Client
This is a TypeScript client for the SpamWatch API written using Deno and converted to a node-friendly version using deno2node. This is a heavily modified version of spamwatch-js-fetch which has full API support and supports both the Node and Deno ecosystems. Big thanks to Crashdoom for the original code.
Usage (Deno)
import { Client } from 'https://deno.land/x/[email protected]/src/index.ts'
const spamwatch = new Client(YOUR_TOKEN, 'https://api.spamwat.ch')
const version = await spamwatch.getVersion()
console.log(version)
Usage (Node)
npm install spamwatch-ts
const { Client } = require('spamwatch-ts')
(async () => {
const spamwatch = new Client(YOUR_TOKEN, 'https://api.spamwat.ch')
const version = await spamwatch.getVersion()
console.log(version)
})()