directory-fonts-complete

1.2.0 • Public • Published

Directory Fonts Complete

Generate a complete list of fonts and their sources from a directory.

Usage

return require('directory-fonts-complete')('/System Folder/Fonts', ['custom/font/path/on/site']);

yields

{
    "Apple Braille": {
        "variants": {
            "400": {
                "normal": {
                    {
                        "local": [
                            "Apple Braille",
                            "AppleBraille"
                        ],
                        "url": {
                            "ttf": "/System/Library/Fonts/Apple Braille.ttf"
                        }
                    }
                }
            }
        }
    },
    ...
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    3,956
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    3,956
  • 1.1.0
    7
  • 1.0.0
    0

Package Sidebar

Install

npm i directory-fonts-complete

Weekly Downloads

3,229

Version

1.2.0

License

CC0-1.0

Last publish

Collaborators

  • jonathantneal
  • rajdee