JSPM

is-ooxml

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23
  • Score
    100M100P100Q64082F
  • License ISC

Detect if file buffer is an OOXML file type

Package Exports

  • is-ooxml

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-ooxml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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