open-index/open-npm huggingface dataset:
npm package: @sbsiegel/directory-fonts-complete
Description: Generate a complete list of fonts and their sources from a directory (fork with woff2, unicode-range, recursion, fixes)
Author: Jonathan Neal
Latest version: 2.1.0

# Directory Fonts Complete

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

## Usage

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

yields

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

## ✨ Fork Enhancements

This fork improves on the original
[`directory-fonts-complete`](https://github.com/jonathantneal/directory-fonts-complete) with:

- **WOFF2 support**, **EOT removed**
- **Accurate italic detection**
- **Recursive directory traversal**
- **Unicode-range detection** per font
- **Dropped broken `is-woff` / `is-woff2`**, implemented internally