
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
font-list-spc
Advanced tools
font-list
is a Node.js package for listing the fonts available on your system.
Current version supports MacOS, Windows, and Linux.
//using registry
require('./index').getFonts({disableQuoting: true})
.then(fonts => {
console.log(fonts)
console.log(fonts.join('\n'))
})
.catch(err => {
console.log(err)
})
console.log('*** using power shell...')
require('./index').getFonts({disableQuoting: true, usePowerShell: true})
.then(fonts => {
console.log(fonts)
console.log(fonts.join('\n'))
})
.catch(err => {
console.log(err)
})
npm install font-list
const fontList = require('font-list')
fontList.getFonts()
.then(fonts => {
console.log(fonts)
})
.catch(err => {
console.log(err)
})
The return value fonts
is an Array, looks like:
[ '"Adobe Arabic"',
'"Adobe Caslon Pro"',
'"Adobe Devanagari"',
'"Adobe Fan Heiti Std"',
'"Adobe Fangsong Std"',
'Arial',
...
]
If the font name contains spaces, the name will be wrapped in double quotes, otherwise there will be no double quotes, for example: '"Adobe Arabic"'
, 'Arial'
.
If you don't want font names that contains spaces to be wrapped in double quotes, pass the options object with disableQuoting
set to true when calling the method getFonts
:
const fontList = require('font-list')
fontList.getFonts({ disableQuoting: true })
.then(fonts => {
console.log(fonts)
})
.catch(err => {
console.log(err)
})
FAQs
list system fonts using registry and not powershell
The npm package font-list-spc receives a total of 0 weekly downloads. As such, font-list-spc popularity was classified as not popular.
We found that font-list-spc 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.