nodegist
v2.1.0
Published
A simple module allow you to create gists =========================================
Downloads
1
Readme
A simple module allow you to create gists
example:
var Gists=require('nodegist')
var g=new Gists({
files: {
'c.js': {
content: 'var a=1'
}
}
})
g.add('a.txt','a')
g.add('b.txt','b')
g.remove('b.txt')
g.desc('aaaaa')
console.log(g.desc())
g.public(true)
.description('test')
.create()
.then(d=>console.log(d.html_url))
.catch(e=>console.error(e))
more information here