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

is-cwebp-readable

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-cwebp-readable - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

6

index.js
'use strict';
var fileType = require('file-type');
const fileType = require('file-type');
module.exports = function isCwebpReadable(buf) {
var type = fileType(buf);
const type = fileType(buf);

@@ -12,5 +12,5 @@ if (!type) {

var ext = type.ext;
const ext = type.ext;
return ext === 'png' || ext === 'jpg' || ext === 'tif' || ext === 'webp';
};
{
"name": "is-cwebp-readable",
"version": "1.0.3",
"version": "2.0.0",
"description": "Check if a Buffer/Uint8Array is available for cwebp image source",

@@ -8,7 +8,6 @@ "repository": "shinnn/is-cwebp-readable",

"scripts": {
"bench": "node --strong_mode --harmony_array_includes --throw-deprecation --track-heap-objects node_modules/.bin/_matcha benchmark/runner.js",
"pretest": "eslint --config @shinnn/node-legacy index.js benchmark test.js",
"test": "node --strong_mode --throw-deprecation --track-heap-objects test.js | tap-spec",
"coverage": "node --strong_mode node_modules/.bin/istanbul cover test.js",
"coveralls": "${npm_package_scripts_coverage} && istanbul-coveralls"
"bench": "_matcha benchmark/runner.js",
"pretest": "eslint --fix --format=codeframe index.js benchmark test.js",
"test": "node --throw-deprecation --track-heap-objects test.js | tap-spec",
"coverage": "istanbul cover test.js"
},

@@ -35,12 +34,15 @@ "license": "Unlicense",

"dependencies": {
"file-type": "^3.1.0"
"file-type": "^4.2.0"
},
"devDependencies": {
"@shinnn/eslint-config-node-legacy": "^1.0.0",
"eslint": "^1.8.0",
"istanbul": "^0.4.0",
"matcha": "^0.6.0",
"tap-spec": "^4.1.0",
"tape": "^4.2.2"
"@shinnn/eslint-config-node": "^3.0.0",
"eslint": "^3.19.0",
"istanbul": "^0.4.5",
"matcha": "^0.7.0",
"tap-spec": "^4.1.1",
"tape": "^4.6.3"
},
"eslintConfig": {
"extends": "@shinnn/node"
}
}

@@ -7,4 +7,4 @@ # is-cwebp-readable

[![Coverage Status](https://img.shields.io/coveralls/shinnn/is-cwebp-readable.svg)](https://coveralls.io/github/shinnn/is-cwebp-readable)
[![Dependency Status](https://img.shields.io/david/shinnn/is-cwebp-readable.svg?label=deps)](https://david-dm.org/shinnn/is-cwebp-readable)
[![devDependency Status](https://img.shields.io/david/dev/shinnn/is-cwebp-readable.svg?label=devDeps)](https://david-dm.org/shinnn/is-cwebp-readable#info=devDependencies)
[![Dependency Status](https://david-dm.org/shinnn/is-cwebp-readable.svg)](https://david-dm.org/shinnn/is-cwebp-readable)
[![devDependency Status](https://david-dm.org/shinnn/is-cwebp-readable/dev-status.svg)](https://david-dm.org/shinnn/is-cwebp-readable#info=devDependencies)

@@ -11,0 +11,0 @@ Check if a Buffer/Uint8Array is available for [cwebp](https://developers.google.com/speed/webp/docs/cwebp) image source

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