$ cnpm install is-otf
Check if a String/Buffer/ArrayBuffer is OTF
$ npm install --save is-otf
var fs = require('fs');
isOtf(fs.readFileSync('FontAwesome.otf'));
//=> true
$ npm test
test file from Font-Awesome
MIT © junmer
Copyright 2013 - present © cnpmjs.org | Home |