Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

request

Node 7+, Chrome 50+ (or babel :O)

Table of Contents

Install

To get started:

yarn add @ibolmo/request

Usage

import { get, post } from 'request';

async function main() {
  const response = await get('https://api.github.com');
  console.log(JSON.parse(response));

  const success = await post('https://your.tld/resource', {
    data: {
      field: 'value'
    }
  });
  console.log(success);
}

main();

License

MIT © Olmo Maldonado

About

Just a simple fetch wrapper.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages