Skip to content

Commit

Permalink
rename to fastify-http-client
Browse files Browse the repository at this point in the history
  • Loading branch information
bitgorust committed Mar 15, 2019
1 parent bb1efa4 commit 4adc690
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# fastify-curl
# fastify-http-client

[![NPM](https://nodeico.herokuapp.com/@kenuyx/fastify-curl.svg)](https://npmjs.com/package/@kenuyx/fastify-curl)
[![NPM](https://nodei.co/npm/fastify-http-client.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/fastify-http-client/)

[![Build Status](https://travis-ci.org/kenuyx/fastify-curl.svg?branch=master)](https://travis-ci.org/kenuyx/fastify-curl)
[![Build Status](https://travis-ci.org/kenuyx/fastify-http-client.svg?branch=master)](https://travis-ci.org/kenuyx/fastify-http-client)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](http://standardjs.com/)
[![codecov](https://codecov.io/gh/kenuyx/fastify-curl/branch/master/graph/badge.svg)](https://codecov.io/gh/kenuyx/fastify-curl)
[![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)
[![Greenkeeper badge](https://badges.greenkeeper.io/kenuyx/fastify-curl.svg)](https://greenkeeper.io/)
[![codecov](https://codecov.io/gh/kenuyx/fastify-http-client/branch/master/graph/badge.svg)](https://codecov.io/gh/kenuyx/fastify-http-client)
[![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)
[![Greenkeeper badge](https://badges.greenkeeper.io/kenuyx/fastify-http-client.svg)](https://greenkeeper.io/)

A plugin for [Fastify](http://fastify.io/) that adds support for sending HTTP(s) requests.

Expand All @@ -15,7 +15,7 @@ Under the hood [urllib](https://github.com/node-modules/urllib) is used, the opt
## Install

```shell
npm i @kenuyx/fastify-curl --save
npm i fastify-http-client --save
```

## Usage
Expand All @@ -28,7 +28,7 @@ You can access the [urllib](https://github.com/node-modules/urllib) `HttpClient`
'use strict'

module.exports = function (fastify, opts, next) {
fastify.register(require('@kenuyx/fastify-curl'))
fastify.register(require('fastify-http-client'))

// request via httpclient
fastify.httpclient.request('https://nodejs.org/en/', (err, body) => {
Expand All @@ -55,7 +55,7 @@ You may also supply an existing [urllib](https://github.com/node-modules/urllib)
const urllib = require('urllib')

module.exports = function (fastify, opts, next) {
fastify.register(require('@kenuyx/fastify-curl'), {
fastify.register(require('fastify-http-client'), {
client: urllib.create()
})

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kenuyx/fastify-curl",
"version": "1.0.1",
"name": "fastify-http-client",
"version": "1.0.0",
"description": "urllib plugin for fastify",
"main": "index.js",
"scripts": {
Expand All @@ -16,7 +16,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/kenuyx/fastify-curl.git"
"url": "git+https://github.com/kenuyx/fastify-http-client.git"
},
"keywords": [
"fastify",
Expand All @@ -29,9 +29,9 @@
"author": "kenuyx <kenuyx@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/kenuyx/fastify-curl/issues"
"url": "https://github.com/kenuyx/fastify-http-client/issues"
},
"homepage": "https://github.com/kenuyx/fastify-curl#readme",
"homepage": "https://github.com/kenuyx/fastify-http-client#readme",
"dependencies": {
"fastify-plugin": "^1.5.0",
"urllib": "^2.33.0"
Expand Down

0 comments on commit 4adc690

Please sign in to comment.