You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a 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

Detect if file buffer is an OOXML file type

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
75
47.06%
Maintainers
1
Weekly downloads
 
Created
Source

is-ooxml

Detect if file buffer is an OOXML file type.

Checks for 'PK\x03\x04\x14\x00\x06\x00' at the start of a file buffer.

Install

npm install is-ooxml

Usage

const fs = require('fs');
const isOoxml = require('is-ooxml');

const docx = fs.readFileSync('example.docx');
const pdf = fs.readFileSync('example.pdf');

console.log(isOoxml(docx), isOoxml(pdf)); // > true false

Keywords

detect

FAQs

Package last updated on 19 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts