Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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,938 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.