Nth Permutation Mathematics
    Wondering what’s next for npm?Check out our public roadmap! »

    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"
                            }
                        }
                    }
                }
            }
        },
        ...
    }

    Install

    npm i directory-fonts-complete

    DownloadsWeekly Downloads

    4,163

    Version

    1.2.0

    License

    CC0-1.0

    Last publish

    Collaborators

    • avatar
    • avatar