1
- # fastify-curl
1
+ # fastify-http-client
2
2
3
- [ ![ NPM] ( https://nodeico.herokuapp.com/@kenuyx /fastify-curl.svg )] ( https://npmjs.com/package/@kenuyx/ fastify-curl )
3
+ [ ![ NPM] ( https://nodei.co/npm /fastify-http-client.png?downloads=true&downloadRank=true&stars=true )] ( https://nodei.co/npm/ fastify-http-client/ )
4
4
5
- [ ![ Build Status] ( https://travis-ci.org/kenuyx/fastify-curl .svg?branch=master )] ( https://travis-ci.org/kenuyx/fastify-curl )
5
+ [ ![ Build Status] ( https://travis-ci.org/kenuyx/fastify-http-client .svg?branch=master )] ( https://travis-ci.org/kenuyx/fastify-http-client )
6
6
[ ![ js-standard-style] ( https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat )] ( http://standardjs.com/ )
7
- [ ![ codecov] ( https://codecov.io/gh/kenuyx/fastify-curl /branch/master/graph/badge.svg )] ( https://codecov.io/gh/kenuyx/fastify-curl )
8
- [ ![ Known Vulnerabilities] ( https://snyk.io/test/github/kenuyx/fastify-curl /badge.svg?targetFile=package.json )] ( https://snyk.io/test/github/kenuyx/fastify-curl ?targetFile=package.json )
9
- [ ![ Greenkeeper badge] ( https://badges.greenkeeper.io/kenuyx/fastify-curl .svg )] ( https://greenkeeper.io/ )
7
+ [ ![ codecov] ( https://codecov.io/gh/kenuyx/fastify-http-client /branch/master/graph/badge.svg )] ( https://codecov.io/gh/kenuyx/fastify-http-client )
8
+ [ ![ Known Vulnerabilities] ( https://snyk.io/test/github/kenuyx/fastify-http-client /badge.svg?targetFile=package.json )] ( https://snyk.io/test/github/kenuyx/fastify-http-client ?targetFile=package.json )
9
+ [ ![ Greenkeeper badge] ( https://badges.greenkeeper.io/kenuyx/fastify-http-client .svg )] ( https://greenkeeper.io/ )
10
10
11
11
A plugin for [ Fastify] ( http://fastify.io/ ) that adds support for sending HTTP(s) requests.
12
12
@@ -15,7 +15,7 @@ Under the hood [urllib](https://github.com/node-modules/urllib) is used, the opt
15
15
## Install
16
16
17
17
``` shell
18
- npm i @kenuyx/ fastify-curl --save
18
+ npm i fastify-http-client --save
19
19
```
20
20
21
21
## Usage
@@ -28,7 +28,7 @@ You can access the [urllib](https://github.com/node-modules/urllib) `HttpClient`
28
28
' use strict'
29
29
30
30
module .exports = function (fastify , opts , next ) {
31
- fastify .register (require (' @kenuyx/ fastify-curl ' ))
31
+ fastify .register (require (' fastify-http-client ' ))
32
32
33
33
// request via httpclient
34
34
fastify .httpclient .request (' https://nodejs.org/en/' , (err , body ) => {
@@ -55,7 +55,7 @@ You may also supply an existing [urllib](https://github.com/node-modules/urllib)
55
55
const urllib = require (' urllib' )
56
56
57
57
module .exports = function (fastify , opts , next ) {
58
- fastify .register (require (' @kenuyx/ fastify-curl ' ), {
58
+ fastify .register (require (' fastify-http-client ' ), {
59
59
client: urllib .create ()
60
60
})
61
61
0 commit comments