Docs: move npm install command to examples

This commit is contained in:
Lovell Fuller 2020-05-01 11:38:09 +01:00
parent 48255fa009
commit ef8a705957

View File

@ -2,10 +2,6 @@
<img src="https://cdn.jsdelivr.net/gh/lovell/sharp@master/docs/image/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right"> <img src="https://cdn.jsdelivr.net/gh/lovell/sharp@master/docs/image/sharp-logo.svg" width="160" height="160" alt="sharp logo" align="right">
```sh
npm install sharp
```
The typical use case for this high speed Node.js module The typical use case for this high speed Node.js module
is to convert large images in common formats to is to convert large images in common formats to
smaller, web-friendly JPEG, PNG and WebP images of varying dimensions. smaller, web-friendly JPEG, PNG and WebP images of varying dimensions.
@ -25,6 +21,10 @@ do not require any additional install or runtime dependencies.
## Examples ## Examples
```sh
npm install sharp
```
```javascript ```javascript
const sharp = require('sharp'); const sharp = require('sharp');
``` ```