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.
font-detective
Advanced tools
Note: v1.x supported getting a full list of fonts with Flash; v2.x drops support for Flash.
Detects available system fonts with JavaScript, from a list of common fonts.
See a demo. You can edit the sample text.
<script src="lib/font-detective.js"></script>
<script>
FontDetective.each(function(font){
$("<option>")
.val(font)
.text(font.name)
.appendTo("select");
font.name; // e.g. 'Arial'
font.toString(); // e.g. '"Arial"'
});
FontDetective.all(function(fonts){
console.log(fonts);
});
</script>
FontDetective.each(callback)
Font
every time a font is detected and testedFontDetective.all(callback)
Array
of Font
s when all fonts are detected and testedFontDetective.preload()
all
or each
right awayFontDetective.Font
font.name
property can be used to display the name of the fontfont
can be used anywhere you'd use a font-family
(e.g. div.style.fontFamily = font
)For detecting fonts from Node.js, see font-manager
MIT-licensed, see LICENSE for details
FAQs
Detect fonts in-browser
We found that font-detective 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.