💫 Spacebin JS
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
- Luke Whrit me@lukewhrit.xyz - Primary developer and maintainer.
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