1.0.0 • Published 4 years ago

spacebin-js v1.0.0

Weekly downloads
5
License
BSD-3-Clause-Clea...
Repository
github
Last release
4 years ago

💫 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

1.0.0

4 years ago