rikuesuto
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

Rikuesuto

A simple node.js http client.

"rikuesuto" is request in japanese

Installation and Usage

node.js version 12 or newer is required.

yarn add rikuesuto

P.S. when working with form-data make sure to install form-data.

JSON Response:

import { make } from "rikuesuto";
 
make("https://api.github.com/users/melike2d")
   .then(res => console.log(res.json))

POST Request:

import { make, Method } from "rikuesuto";
 
make("https://httpbin.org/post")
    .method(Method.POST)
    .body({ a: 1 }) // automatically stringifies the json.
    .then((res) => console.log(res.json))

rikuesuto is licensed under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i rikuesuto

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

39.8 kB

Total Files

14

Last publish

Collaborators

  • the2dperson