api-promise
1.0.1 • Public • Published api-promise
Helper for fast API consuming in promises.
Installing
npm install api-promise --save
Usage
const ap = require('api-promise')
const github = ap('api.github.com', 'GITHUB-TOKEN')
github('POST', '/some/api/path', { param: 'value' })
.then(res => {
})
.catch(err => {
})
Package Sidebar
Install
Weekly Downloads