Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

spacebin-js

spacebin-org15BSD-3-Clause-Clear1.0.0

💫 node.js library for accessing spacebin instances

readme

💫 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