
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.
spam-humanizer
Advanced tools
A lightweight JavaScript library for normalizing obfuscated text and detecting spam across English, Russian, and Ukrainian languages using OpenAI or DeepSeek AI providers.
A lightweight JavaScript library for normalizing obfuscated text and detecting spam across English, Russian, and Ukrainian languages using OpenAI or DeepSeek AI providers.
೧ⲢӤβεT
) into readable text by mapping Unicode symbols to their Latin or Cyrillic equivalents.en.json
), Russian (ru.json
), and Ukrainian (ua.json
).npm install spam-humanizer
import { SpamHumanizer } from "spam-humanizer";
// Initialize with your API key and preferred provider
const humanizer = new SpamHumanizer({
apiKey: process.env.OPENAI_KEY,
provider: "openai" // or "deepseek"
});
(async () => {
// Humanize garbled text
const readable = await humanizer.humanize("೧ⲢӤβεT", "ru");
console.log(readable); // "Привет"
// Spam detection (single language)
const result = await humanizer.isSpam("Buy cheap Viagra now!", "en");
console.log(result);
// → { spam: true, lang: 'en', reason: 'yes: promotional content detected' }
// Spam detection (multi-language fallback)
const multiCheck = await humanizer.isSpam("Купи підписку вже зараз!");
console.log(multiCheck);
// → { spam: true, lang: 'ua', reason: 'yes: рекламний текст' }
})();
new SpamHumanizer({ apiKey, provider })
"openai"
(default) or "deepseek"
..humanize(text, lang?)
Normalize obfuscated text:
"en"
|"ru"
|"ua"
, optional): Primary language. Defaults to "en"
.Returns a Promise<string>
with the humanized text.
.isSpam(text, lang?)
Detects whether text
is spam:
"en"
|"ru"
|"ua"
, optional): If omitted, checks across all three languages.Returns a Promise<Object>
:
spam
(boolean)lang
(string) – the language in which spam was detectedreason
(string) – the raw model responseMIT © @radonl
BTC: bc1qzjjffns84rxcfg9hqd4se76p5k3f0y5urv4q52
ETH: 0x7c625921BF29337fB91231d0df78c88B97cA85a7
USDT(ETH): 0x7c625921BF29337fB91231d0df78c88B97cA85a7
FAQs
A lightweight JavaScript library for normalizing obfuscated text and detecting spam across English, Russian, and Ukrainian languages using OpenAI or DeepSeek AI providers.
We found that spam-humanizer demonstrated a healthy version release cadence and project activity because the last version was released less than 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.