neap
v0.1.1
Published
Refheap API client
Downloads
3
Readme
neap
I've run dry of reasonable names for refheap client libraries. Sue me. :)
Usage
npm install neap
Then you can use it like so:
Refheap = require 'neap'
rh = Refheap('user', 'token')
rh.createPaste '(+ 3 3)', private: true, language: 'Clojure', (r) ->
# r will be an object (the response from refheap parsed from json)
console.log r
rh.getPaste 2, (r) ->
console.log r.contents