🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

is-ooxml

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-ooxml - npm Package Compare versions

Comparing version

to
0.0.2

9

index.js
'use strict';
var marker = Buffer('PK\x03\x04\x14\x00\x06\x00');
module.exports = function (buffer) {
if (Buffer.isBuffer(buffer)) {
return buffer.slice(0,8).equals(marker);
module.exports = function (buf) {
if (buf[0] === 0x50 && buf[1] === 0x4b && buf[2] === 0x03 && buf[3] === 0x04
&& buf[4] === 0x14 && buf[5] === 0x00 && buf[6] === 0x06 && buf[7] === 0x00) {
return true;
}

@@ -9,0 +8,0 @@

{
"name": "is-ooxml",
"version": "0.0.1",
"version": "0.0.2",
"description": "Detect if file buffer is an OOXML file type",

@@ -5,0 +5,0 @@ "main": "index.js",