From 2838a21aaaf7e83a49760f6efa7477765aea55ac Mon Sep 17 00:00:00 2001 From: Uzlopak Date: Wed, 29 Jun 2022 00:45:07 +0200 Subject: [PATCH] fix ci-badge and usage in Readme.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bf6c609..00ef196 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # @fastify/accept-negotiator -![CI](https://github.com/fastify/fastify-accept-negotiator/workflows/CI/badge.svg) +![CI](https://github.com/fastify/accept-negotiator/workflows/CI/badge.svg) [![NPM version](https://img.shields.io/npm/v/@fastify/accept-negotiator.svg?style=flat)](https://www.npmjs.com/package/@fastify/accept-negotiator) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) @@ -24,7 +24,7 @@ negotiate(header, supportedValues) - `supportedValues` (`string[]`, required) - The values, which are supported ```js -const negotiate = require('@fastify/accept-encoding').negotiate +const negotiate = require('@fastify/accept-negotiator').negotiate const encoding = negotiate('gzip, deflate, br', ['br']) console.log(encoding) // 'br* ``` @@ -40,7 +40,7 @@ Negotiate(supportedValues) - `cache` (`{ set: Function; get: Function; has: Function }`, optional) - A Cache-Store, e.g. ES6-Map or mnemonist LRUCache ```js -const Negotiator = require('@fastify/accept-encoding').Negotiator +const Negotiator = require('@fastify/accept-negotiator').Negotiator const encodingNegotiator = new Negotiator({ supportedValues: ['br'], cache: new Map() }) const encoding = encodingNegotiator.negotiate('gzip, deflate, br') @@ -49,4 +49,4 @@ console.log(encoding) // 'br* ## License -Licensed under [MIT](./LICENSE). \ No newline at end of file +Licensed under [MIT](./LICENSE).