@sbsiegel/directory-fonts-complete
v2.1.0
Published
Generate a complete list of fonts and their sources from a directory (fork with woff2, unicode-range, recursion, fixes)
Maintainers
Readme
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"
}
}
}
}
}
},
...
}✨ Fork Enhancements
This fork improves on the original
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
