is-docx

0.0.3 • Public • Published

is-docx

Detect docx file type from buffer.

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

Install

npm install is-docx

Usage

const fs = require('fs');
const isDocx = require('is-docx');
 
const file = fs.readFileSync('example.docx');
 
console.log(isDocx(file)); // > true

Readme

Keywords

Package Sidebar

Install

npm i is-docx

Weekly Downloads

7,033

Version

0.0.3

License

ISC

Last publish

Collaborators

  • overra