is-ttf

Check if a String/Buffer is TTF

MIT 5 个版本
安装
npm install is-ttf
yarn add is-ttf
pnpm add is-ttf
bun add is-ttf
README

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

版本列表
0.2.2 2016-05-05
0.2.1 2015-04-22
0.2.0 2015-01-29
0.1.1 2015-01-29
0.1.0 2015-01-29