
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
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.
language-literals
Advanced tools
Dedent named exports for tagged template literals. This is a sugar helper utility that can be used with the vscode Language Literals extension to provide syntax highlighting and dedent capabilities of template literal strings.
pnpm add language-literals
Because pnpm is dope and does dope shit.
Use named import expressions, the syntax highlighting grammars will not work on * as import assignments.
import {
html,
liquid,
xml,
xhtml,
json,
jsonc,
yaml,
css,
scss,
sass,
js,
ts,
jsx,
tsx,
md,
} from "language-literals";
html``;
liquid``;
xml``;
xhtml``;
json``;
jsonc``;
yaml``;
css``;
scss``;
sass``;
js``;
ts``;
jsx``;
tsx``;
md``;
Let's take the following expression, wherein the html literal is indented at a depth of 3 from the right side:
import { html } from 'language-literals';
function example () {
const object = {
property: [
/* WITHOUT LANGUAGE LITERAL */
`
<div>
<h1>Hello World</h1>
</div>
`,
/* WITH LANGUAGE LITERAL */
html`
<div>
<h1>Hello World</h1>
</div>
`
]
}
}
The output result would preserve the additional whitespace starting from the left side. Using the above sample:
Without Language Literal
<div>
<h1>Hello World</h1>
</div>
Using Language Literal
<div>
<h1>Hello World</h1>
</div>
Notice how the code output when using the html literal trims the leading and ending spaces. Very cool.
MIT
FAQs
Dedent named exports for tagged template literals.
We found that language-literals 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
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.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.