
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@pomsky-lang/unplugin
Advanced tools
Use Pomsky along with your JavaScript.
pnpm i -D @pomsky-lang/unplugin
vite.config.ts
import fs from "node:fs";
import pomsky from "@pomsky-lang/unplugin";
import { UserConfigExport } from "vite";
export default {
plugins: [
pomsky.vite({
flavor: "js", // default = "js"
includeOriginal: false, // default = false
fileExtensions: [".javascript"], // default = []; always checks /"." ["c" "m"]? ["j" "t"] "s" "x"? $/
pomskyWASM: fs.readFileSync("path/to/custom/pomsky.wasm"), // default = unplugin-pomsky's package.json pomsky-wasm
}),
],
} as UserConfigExport;
tsconfig.json
{
"compilerOptions": {
"types": ["@pomsky-lang/unplugin"]
}
}
// The regex source is inlined and the Pomsky code is compiled on build.
// The flavor is optional.
import make, { pomsky, regex } from "./regex.pom?flavor=rust";
// Compiles the regex when called.
make();
// Optional flags.
make("gi");
// Automatic caching. Works with flags too!
for (let i = 0; i < 1_000_000; i++) {
make();
}
// The original Pomsky source. Only included with `includeOriginal: true` in the plugin options.
pomsky;
// The regex source.
regex;
// The regex source is inlined and the Pomsky code is compiled on buid.
// No need to import this function since it doesn't actually exist.
// The flavor is optional.
const make = pomsky$(`
['-+']?
%
('0' | ['1'-'9'] (','? ['0'-'9'])*)
('.' ['0'-'9']+)?
%
`, "js");
// Compiles the regex when called.
make();
// Optional flags.
make("gi");
// Automatic caching. Works with flags too!
for (let i = 0; i < 1_000_000; i++) {
make();
}
// The original Pomsky source. Only included with `includeOriginal: true` in the plugin options.
make.pomsky;
// The regex source.
make.regex;
Pomsky is unicode aware by default, so the unicode flag is enabled by default.
There's no clean way to represent disabling unicode with the standard string format, so the plugin provides an object form which has the ability to disable unicode.
make().flags; // "u"
make("").flags; // "u"
make("i").flags; // "iu"
make({ ignoreCase: true, unicode: false }).flags; // "i"
FAQs
Use Pomsky along with your JavaScript.
We found that @pomsky-lang/unplugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.