cash-fetch
v0.1.0
Published
Send HTTP request in browser and node.js
Downloads
554
Readme
cash-fetch
Features
- Light-weight, 1KB for browser
- Isomorphic, for both browser and node.js
- Simple API, only GET and POST are supported
- Modern, similar to
window.fetch
API
Install
$ npm install --save cash-fetch
Usage
const $fetch = require('cash-fetch')
$fetch('https://api.github.com/users/egoist')
.then(data => data.json())
.then(data => {
console.log(data.login) //=> egoist
})
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
cash-fetch © EGOIST, Released under the MIT License. Authored and maintained by EGOIST with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin