
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
@react-pug/pug-lexer
Advanced tools
The pug lexer (takes a string and converts it to an array of tokens)
The Pug lexer. This module is responsible for taking a string and converting it into an array of tokens.
npm install @react-pug/pug-lexer
var lex = require('@react-pug/pug-lexer');
lex(str, options)Convert Pug string to an array of tokens.
options can contain the following properties:
filename (string): The name of the Pug file; it is used in error handling if provided.plugins (array): An array of plugins, in the order they should be applied.For react-pug usage, this fork also supports modern TypeScript expression syntax inside Pug expressions and attributes, including as, satisfies, typed inline handlers, and spread attrs with TS casts.
console.log(JSON.stringify(lex('div(data-foo="bar")', {filename: 'my-file.pug'}), null, ' '))
[
{
"type": "tag",
"line": 1,
"val": "div",
"selfClosing": false
},
{
"type": "attrs",
"line": 1,
"attrs": [
{
"name": "data-foo",
"val": "\"bar\"",
"escaped": true
}
]
},
{
"type": "eos",
"line": 1
}
]
new lex.Lexer(str, options)Constructor for a Lexer class. This is not meant to be used directly unless you know what you are doing.
options may contain the following properties:
filename (string): The name of the Pug file; it is used in error handling if provided.interpolated (boolean): if the Lexer is created as a child lexer for inline tag interpolation (e.g. #[p Hello]). Defaults to false.startingLine (integer): the real line number of the first line in the input. It is also used for inline tag interpolation. Defaults to 1.plugins (array): An array of plugins, in the order they should be applied.MIT
react-pug monorepo.react-pug's TypeScript-in-Pug requirements.@react-pug/* namespace, so 0.1.6 is newer than the older upstream-derived 4.x package line previously used here.This package is derived from the original pug-lexer package in the pugjs/pug monorepo:
FAQs
The pug lexer (takes a string and converts it to an array of tokens)
The npm package @react-pug/pug-lexer receives a total of 600 weekly downloads. As such, @react-pug/pug-lexer popularity was classified as not popular.
We found that @react-pug/pug-lexer 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.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.