0.1.0 • Published 7 years ago

cash-fetch v0.1.0

Weekly downloads
11
License
MIT
Repository
github
Last release
7 years ago

cash-fetch

NPM version NPM downloads Build Status donate

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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