spacebin-js

💫 node.js library for accessing spacebin instances


Keywords
hastebin, library, nodejs, pastebin, spacebin, typescript
License
BSD-3-Clause-Clear
Install
npm install spacebin-js@1.0.0

Documentation

💫 Spacebin JS

Codacy grade GitHub last commit GitHub

Node.js library for interacting with Spacebin instances

Installation

  • Using yarn: yarn add spacebin-js
  • Using npm: npm i spacebin-js

Usage

import { Spacebin } from 'spacebin-js'

const spacebin = new Spacebin({
  host: 'http://localhost:7777'
})

spacebin.getDocument('Bc5tR7d9arhh')
  .then(({ id, content }) => {
    // ...
  })
  .catch(err => {
    throw new Error(err)
  })

Contributors

License

This project is licensed under the 3-Clause "Clear" BSD license, the same license as all other spacebin core team projects. A copy of this license can be found in LICENSE.md