mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Regenerate docs
This commit is contained in:
parent
4af702ee11
commit
55998707a5
@ -39,8 +39,7 @@ For raw pixel input, the `options` object should contain a `raw` attribute, whic
|
||||
**Parameters**
|
||||
|
||||
- `images` **([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) \| [String](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String) \| [Buffer](https://nodejs.org/api/buffer.html))** one or more images (file paths, Buffers).
|
||||
- `Object` image options, see `sharp()` constructor.
|
||||
- `options`
|
||||
- `options` **[Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)** image options, see `sharp()` constructor.
|
||||
|
||||
|
||||
- Throws **[Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error)** Invalid parameters
|
||||
|
@ -9,8 +9,7 @@ useful for determining how much working memory is required for a particular task
|
||||
|
||||
**Parameters**
|
||||
|
||||
- `Object` **([Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) \| [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean))** with the following attributes, or Boolean where true uses default cache settings and false removes all caching.
|
||||
- `options`
|
||||
- `options` **([Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) \| [Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean))** Object with the following attributes, or Boolean where true uses default cache settings and false removes all caching.
|
||||
- `options.memory` **\[[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** is the maximum memory in MB to use for this cache (optional, default `50`)
|
||||
- `options.files` **\[[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** is the maximum number of files to hold open (optional, default `20`)
|
||||
- `options.items` **\[[Number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)]** is the maximum number of operations to cache (optional, default `100`)
|
||||
|
2
package.json
Executable file → Normal file
2
package.json
Executable file → Normal file
@ -74,7 +74,7 @@
|
||||
"icc": "^0.0.2",
|
||||
"mocha": "^3.1.2",
|
||||
"node-cpplint": "^0.4.0",
|
||||
"nyc": "^8.3.2",
|
||||
"nyc": "^8.4.0",
|
||||
"rimraf": "^2.5.4",
|
||||
"semistandard": "^9.1.0",
|
||||
"unzip": "^0.1.11"
|
||||
|
Loading…
x
Reference in New Issue
Block a user