Skip to content

Commit 7a25622

Browse files
committed
Use ES6 syntax in README
The implicit equivalent to using our library is `require('adorable-avatars').default`, but we're not really going to highlight/encourage that. Babel will smooth over this bump if you're using it.
1 parent e560615 commit 7a25622

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Then, use the router middleware within your application:
1717

1818
```js
1919
// your_server.js
20-
var express = require('express');
21-
var avatarsMiddleware = require('adorable-avatars');
20+
import express from 'express';
21+
import avatarsMiddleware from 'adorable-avatars';
2222

23-
var myApp = express();
23+
const myApp = express();
2424
myApp.use('/myAvatars', avatarsMiddleware);
2525
```
2626

0 commit comments

Comments
 (0)