is-otf

v0.1.1
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

Metadata

  • MIT
  • >=0.10.0
  • junmer
  • released 2/12/2015

Downloads

Maintainers