@mantocko/rest-client

0.1.2 • Public • Published

@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

Package Sidebar

Install

npm i @mantocko/rest-client

Weekly Downloads

2

Version

0.1.2

License

ISC

Unpacked Size

13.9 kB

Total Files

7

Last publish

Collaborators

  • emantock