Socket
Socket
Sign inDemoInstall

is-jpg

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-jpg - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

package.json
{
"name": "is-jpg",
"version": "0.1.1",
"version": "0.1.2",
"description": "Check if a Buffer/Uint8Array is a JPEG image",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -30,3 +30,3 @@ # is-jpg [![Build Status](https://travis-ci.org/sindresorhus/is-jpg.svg?branch=master)](https://travis-ci.org/sindresorhus/is-jpg)

var isJpg = require('is-jpg');
var buffer = readChunk('unicorn.jpg', 0, 3);
var buffer = readChunk.sync('unicorn.jpg', 0, 3);

@@ -33,0 +33,0 @@ isJpg(buffer);

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