Expose libvips+deps versions attribute

Add versions.json for Linux packaging

Bump vips-dev Windows version for latest libpng
This commit is contained in:
Lovell Fuller
2015-11-22 20:58:38 +00:00
parent 01a1377972
commit 8012733a52
6 changed files with 123 additions and 38 deletions

View File

@@ -569,6 +569,29 @@ sharp.queue.on('change', function(queueLength) {
});
```
#### versions
An Object containing the version numbers of libvips and, on Linux, its dependencies.
```javascript
> console.log(sharp.versions);
{ zlib: '1.2.8',
ffi: '3.2.1',
glib: '2.46.2',
xml: '2.9.2',
gsf: '1.14.34',
exif: '0.6.21',
jpeg: '1.4.2',
png: '1.6.19',
lcms: '2.7',
webp: '0.4.4',
tiff: '4.0.6',
magick: '6.9.2-6',
orc: '0.4.24',
vips: '8.1.1' }
```
### Utilities
#### sharp.cache([memory], [items])