Skip to content

Commit c45d18b

Browse files
committed
add info in readme file
1 parent f5f6282 commit c45d18b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ or
1919
`import { FetchImage } from 'random-image-unsplash';`
2020

2121
or
22-
`const RandomImage = require('random-image-unsplash').FetchImage;`
23-
`const FetchImage = RandomImage.FetchImage;`
22+
`const { FetchImage } = require('random-image-unsplash')`
2423

2524

2625

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "random-image-unsplash",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"private": false,
55
"main": "./build/index.js",
66
"description": "A javascript package for random image url. Fetched images from unsplash. It can be use in any javascript framework (both frontend and backend).",

0 commit comments

Comments
 (0)