Fix names in readme
This commit is contained in:
parent
17fdd50440
commit
3544fc3e49
|
@ -1,17 +1,17 @@
|
||||||
<h1 align='center'>express-browser</h1>
|
<h1 align='center'>express-browser-detect</h1>
|
||||||
This middleware helps you to easily detect the user's browser.
|
This middleware helps you to easily detect the user's browser.
|
||||||
|
|
||||||
It uses [which-browser](https://www.npmjs.com/package/which-browser) under the hood, and all the documentation is there
|
It uses [which-browser](https://www.npmjs.com/package/which-browser) under the hood, and all the documentation is there
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
```
|
```
|
||||||
yarn add --save express-browser
|
yarn add --save express-browser-detect
|
||||||
```
|
```
|
||||||
|
|
||||||
Or if you prefer `npm`
|
Or if you prefer `npm`
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install --save express-browser
|
npm install --save express-browser-detect
|
||||||
```
|
```
|
||||||
|
|
||||||
# Example
|
# Example
|
||||||
|
@ -19,7 +19,7 @@ npm install --save express-browser
|
||||||
const express = require('express');
|
const express = require('express');
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 3000;
|
const port = 3000;
|
||||||
const ex_browser = require('express-browser');
|
const ex_browser = require('express-browser-detect');
|
||||||
|
|
||||||
app.use(ex_browser);
|
app.use(ex_browser);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue