Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
get-system-fonts
Advanced tools
List full paths to all of the system fonts present. Uses fast-glob to quickly find the right files.
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 30,907 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.