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

/is-ttf/

    Package Sidebar

    Install

    npm i is-ttf

    Weekly Downloads

    6,755

    Version

    0.2.2

    License

    MIT

    Last publish

    Collaborators

    • junmer