nofetch
Install
yarn add nofetch
Usage
const nofetch = // GET // POST // Form dataconst form = form
API
nofetch(url, [options])
options
method:
Type: string
Default: GET
Request method.
headers
Type: object
Request headers.
body
Request body. can be a string, object, buffer, readable stream
timeout
Type: number
object
Request timeout.
agent
agent
option for http.request
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
nofetch © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin