New Paste
Uploading a paste to our paste bin
ES6
import { PasteClient } from '@cordxapp/pastes';
const paster = new PasteClient();
await paster.post('Some text here')
.then((r) => console.log(r))
.catch((e) => console.log(e.stack))
Commonjs
const { PasteClient } = require('@cordxapp/pastes');
const paster = new PasteClient();
await paster.post('Some text here')
.then((r) => console.log(r))
.catch((e) => console.log(e.stack))