Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

is-otf

junmer39.5kMIT0.1.2

Check if a String/Buffer/ArrayBuffer is OTF

font, OpenType, OTF, type, detect, check, is, string, str, buffer

readme

is-otf Build Status

Check if a String/Buffer/ArrayBuffer is OTF

Install

$ npm install --save is-otf

Usage

var fs = require('fs');
isOtf(fs.readFileSync('FontAwesome.otf'));
//=> true

Thx

Test

$ npm test

test file from Font-Awesome

License

MIT © junmer