From cb80c6679fdec67ddaa9aab8985ccf3ce39c9ebc Mon Sep 17 00:00:00 2001 From: azabroflovski Date: Wed, 3 Apr 2024 11:10:31 +0500 Subject: [PATCH] docs(readme): improve example usage code --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c53fcbf..f0057e1 100644 --- a/README.md +++ b/README.md @@ -28,15 +28,17 @@ $ npm i thumbor-client import { createThumbor } from 'thumbor-client' const thumbor = createThumbor({ - url: 'https://url-to-thumbor.com', + url: 'https://your-thumbor.com', key: 'secret' }) const imgUrl = thumbor - .fromUrl('https://somesite.com/cat.jpeg') + .fromUrl('https://cataas.com/cat') .smartCrop(true) - .resize(500, 0) + .resize(300, 200) .buildURL() + +console.log(imageUrl) // https://your-thumbor.com/unsafe/300x200/smart/https://cataas.com/cat ``` ## LICENSE