@ibolmo/request

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ibolmo/request

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • ibolmo