is-ttf

v0.2.2
Check if a String/Buffer is TTF
TTF type detect check is string str buffer

is-ttf Build Status

Check if a String/Buffer is TTF

Install

$ npm install --save is-ttf

Usage

var fs = require('fs');
isTtf(fs.readFileSync('pixel.ttf'));
//=> true

API

isTtf(source[, options])

  • source ArrayBuffer | Buffer | String
  • options
    • tables necessarily tables of ttf

thx

License

MIT © junmer

npm i is-ttf

Metadata

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

Downloads

Maintainers