is-otf

v0.1.2
Check if a String/Buffer/ArrayBuffer is OTF
font OpenType OTF type detect check is string str and 2 more...

is-otf Build Status

Check if a String/Buffer/ArrayBuffer is OTF

Install

$ npm install --save is-otf

Usage

var fs = require('fs');
isOtf(fs.readFileSync('FontAwesome.otf'));
//=> true

Thx

Test

$ npm test

test file from Font-Awesome

License

MIT © junmer

npm i is-otf

Metadata

  • MIT
  • >=0.10.0
  • junmer
  • released 5/5/2016

Downloads

Maintainers