is-ttf

0.2.2 • Public • Published

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

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i is-ttf

Weekly Downloads

8,786

Version

0.2.2

License

MIT

Last publish

Collaborators

  • junmer