Skip to content

pouya-eghbali/node-font-list-universal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

font-list-universal

font-list-universal is a Node.js package for listing the fonts available on your system.

Current version supports MacOS, Windows, and Unix (Linux, FreeBSD, NetBSD, OpenBSD...).

Install

npm install font-list-universal

Usage

const fontList = require('font-list-universal')

fontList.getFonts()
  .then(fonts => {
    console.log(fonts)
  })
  .catch(err => {
    console.log(err)
  })

The return value fonts is an Array, looks like:

[ 'Adobe Arabic',
  'Adobe Caslon Pro',
  'Adobe Devanagari',
  'Adobe Fan Heiti Std',
  'Adobe Fangsong Std',
  'Arial',
  ...
  ]

If the font name is wrapped in "" the wrapping "" will be removed.

About

List installed fonts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published