Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
get-system-fonts
Advanced tools
List full paths to all of the system fonts present.
npm install get-system-fonts
const getSystemFonts = require('get-system-fonts');
// In an async function...
const files = await getSystemFonts(); // ['/Library/Fonts/Georgia.ttf', ...]
getSystemFonts([options]): Promise<string[]>
Lists absolute paths to all system fonts
NOTE: If you're using Typescript, getSystemFonts()
is available as the
default export.
Params
options
[object] - Options for configuring retrieval
additionalFolders
[string[]] - Paths to additional folders to
recursively scan for font files. Absolute paths are recommended. Default:
[]
extensions
[string[]] - List of file extensions to treat as font
files. Default: ['ttf', 'otf', 'ttc', 'woff', 'woff2']
Want to contribute to the project? Go check out the Contribution Guide for instructions to set up your development environment, open an issue and create a pull request.
FAQs
List full paths to all system fonts
The npm package get-system-fonts receives a total of 24,480 weekly downloads. As such, get-system-fonts popularity was classified as popular.
We found that get-system-fonts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.