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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    8,564
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    8,564
  • 0.2.1
    71
  • 0.2.0
    1
  • 0.1.1
    2
  • 0.1.0
    1

Package Sidebar

Install

npm i is-ttf

Weekly Downloads

8,639

Version

0.2.2

License

MIT

Last publish

Collaborators

  • junmer