Skip to content

mjpclab/install-fonts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 system
  • user: 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.