system-font-paths
Version:
Finds the paths of all locally installed system fonts
8 lines (7 loc) • 328 B
JavaScript
const binary = require('@mapbox/node-pre-gyp'),
path = require('path'),
// eslint-disable-next-line import/no-dynamic-require
{ systemFontPaths } = require(binary.find(path.resolve(path.join(__dirname, './package.json'))));
module.exports = () => new Promise((resolve, reject) => {
systemFontPaths(resolve);
});