image-type
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "image-type", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Detect the image type of a Buffer/Uint8Array", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -25,3 +25,3 @@ # image-type [![Build Status](https://travis-ci.org/sindresorhus/image-type.svg?branch=master)](https://travis-ci.org/sindresorhus/image-type) | ||
imageType(buffer); | ||
//=> png | ||
//=> {ext: 'png', mime: 'image/png'} | ||
``` | ||
@@ -40,3 +40,3 @@ | ||
console.log(imageType(chunk)); | ||
//=> gif | ||
//=> {ext: 'gif', mime: 'image/gif'} | ||
}); | ||
@@ -55,3 +55,3 @@ }); | ||
imageType(new Uint8Array(this.response)); | ||
//=> png | ||
//=> {ext: 'png', mime: 'image/png'} | ||
}; | ||
@@ -58,0 +58,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3895