0.0.4 • Published 1 year ago
install-fonts v0.0.4
install-fonts
A Node.js utility to install fonts.
Supported platform
- Windows
- Linux
- OSX
Usage
const installFonts = require("install-fonts");
installFonts({
scope: "system",
dirs: "/path/to/fonts",
});
Options
scope
system
: install fonts for all users on the systemuser
: install fonts for current user
Defaults to user
.
files
: string | string[]
Install specified font files.
dirs
: string | string[]
Install all font files under the specified directories.
recurseDirs
: string | string[]
Install all font files under the specified directories and their sub directories.