1.2.0 • Published 1 day ago

system-font-paths v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

system-font-paths

npm ci license

A C++ module for Node.js that lists all locally installed system font files.

About

This package exports a single async function that returns an array containing the file paths of all locally installed fonts. It is a slimmed down version of fontmanager-redux.

Platforms

Installation

Install with npm:

npm install system-font-paths

Or with yarn:

yarn add system-font-paths

Prebuilt binaries for node 16, 18, 20, and 22 are provided via node-pre-gyp for the following platforms:

  • macOS x64 and arm64
  • Windows x64 and x86
  • Linux x64 (Ubuntu)

API

This package exports a single asynchronous function that promises an array of font file path strings:

import systemFontPaths from 'system-font-paths';

systemFontPaths().then((fontPaths) => { ... });

Acknowledgements

This project is based heavily on the fontmanager-redux and font-manager packages:

License

MIT

1.2.0

1 day ago

1.1.0

1 year ago

1.0.0

1 year ago