node-monospace-fonts
Get a list of monospace fonts installed on your system. Prebuilt N-API module created for shifty automatic font detection. Based on code from font-manager.
Table of contents
Installation
yarn
yarn add node-monospace-fonts
npm
npm i node-monospace-fonts --save
Usage
import { getMonospaceFonts } from "node-monospace-fonts";
// Logs monospace fonts installed on your system
console.log(getMonospaceFonts());
// [
// "Andale Mono",
// "Courier",
// "Courier New",
// "Menlo",
// "Monaco",
// "PT Mono"
// ]
Contributing
TODO
License
MIT