
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.
🅰️ Parse font file (TTF, OTF) metadata like font family name.
Upload a font and see the results at: https://danbovey.uk/fontname
npm install fontname
yarn add fontname
FontName.parse(ArrayBuffer)
Parses an ArrayBuffer (binary data of the font from a FileReader) and returns an object with font meta. Throws on failure.
import FontName from 'fontname';
const fontFile = e.target.files[0]; // File
const reader = new FileReader();
reader.onload = e => {
const buffer = e.target.result; // ArrayBuffer
try {
const fontMeta = FontName.parse(e.target.result)[0];
console.log(fontMeta);
} catch (e) {
// FontName may throw an Error
}
};
reader.readAsArrayBuffer(fontFile);
const fs = require('fs');
const FontName = require('fontname');
try {
const fontMeta = FontName.parse(fs.readFileSync('font.tff'))[0];
console.log(fontMeta);
} catch (e) {
// FontName may throw an Error
}
{
"copyright": "Copyright 2011 Google Inc. All Rights Reserved.",
"_lang": 0,
"fontFamily": "Roboto",
"fontSubfamily": "Regular",
"ID": "Roboto",
"fullName": "Roboto",
"version": "Version 2.137; 2017",
"postScriptName": "Roboto-Regular",
"trademark": "Roboto is a trademark of Google.",
"designer": "Google",
"urlVendor": "Google.com",
"urlDesigner": "Christian Robertson",
"licence": "Licensed under the Apache License, Version 2.0",
"licenceURL": "http://www.apache.org/licenses/LICENSE-2.0"
}
File parsing logic from Typr.js.
FAQs
🅰️ Parse font file (TTF, OTF) metadata like font family name.
We found that fontname 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.