is-font
Detect if a file is a font
Install
$ npm install --save is-font
Usage
const isFont = ; ;//=> {ext: woff2, mime: application/font-woff} ;//=> false
API
isFont(filepath)
Returns an object if true. False otherwise.
filepath
Type: string
Path to the file.
Related
- is-font-cli - CLI for this module
License
MIT © Alex Cross