Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

image-type

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-type - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc