0.1.2 • Published 5 years ago
@mantocko/rest-client v0.1.2
@mantocko/curl.js
A js lib to make rest requests.
const {RestClient} = require('@mantocko/curl.js');
const restClient = new RestClient();
// get data from an api
await restClient.get('https://some.server/basic/get/api');
You can also install and use globally in your shell.
$> npm i -g @mantocko/curl.js
$> curl.js https://some.server/basic/get/api