spacebin-js

1.0.0 • Public • Published

💫 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

Readme

Keywords

none

Package Sidebar

Install

npm i spacebin-js

Weekly Downloads

0

Version

1.0.0

License

BSD-3-Clause-Clear

Unpacked Size

217 kB

Total Files

35

Last publish

Collaborators

  • luke324