rikuesuto
v1.0.6
Published
A simple node.js http client.
Downloads
4
Readme
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.