Check if a buffer/Uint8Array is a
woff2
file
$ npm install --save is-woff2
const read = require('fs').readFileSync;
const isWoff2 = require('is-woff2');
isWoff2(read('example.woff2'));
//=> true
MIT © Arthur Verschaeve
Check if a buffer/Uint8Array is a
woff2
file
$ npm install --save is-woff2
const read = require('fs').readFileSync;
const isWoff2 = require('is-woff2');
isWoff2(read('example.woff2'));
//=> true
MIT © Arthur Verschaeve