1.5.1 • Published 7 years ago

nekocurl v1.5.1

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Nekocurl

Build Status NPM version dependencies Status Scrutinizer Code Quality Code Coverage

A HTTP client class that uses plug-in drivers to do HTTP requests. Default driver is the native http/https module ("nekocurl"), unless you overwrite it.

You need to install the packages for the drivers yourself (peer dependencies). Nekocurl comes with drivers for snekfetch and request.

Installation

npm install nekocurl

Example

const Nekocurl = require('nekocurl');
(new Nekocurl(
    'https://curl.neko.run/test.json',
    {
        driver: 'nekocurl',
        method: 'GET',
        json: true
    }
)).send().then((json) => {
    console.log(json);
});

// or
Nekocurl.get('https://curl.neko.run/test.json', { json: true }).then((json) => {
    console.log(json);
});

Static methods (lowercase naming) are available for the following methods: GET, HEAD, POST, PUT, PATCH and DELETE.

Documentation

https://charlottedunois.github.io/node-nekocurl/

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.5.0

7 years ago

0.4.9

7 years ago

0.4.8

7 years ago

0.4.7

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago