paster.js

1.0.0 • Public • Published

Paster.js

NPM Package Version Size

The official JS wrapper for paste.colem.dev

Installation

Install with NPM

npm install paster.js

Install with Yarn

yarn install paster.js


Examples

Create a paste

const paster = require("paster.js");
const paste = await paster.create("paste content")
console.log(paste)

Fetch a paste

const paste = await paster.fetch('paste_id')
console.log(paste)

/paster.js/

    Package Sidebar

    Install

    npm i paster.js

    Weekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.94 kB

    Total Files

    4

    Last publish

    Collaborators

    • colecci