
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
babel-plugin-prismjs
Advanced tools
A babel plugin to use PrismJS with standard bundlers.
This plugin allows you to treat PrismJS as a standard module and configure what languages, plugins, & themes you want to bundle with Prism.
In your code, import prismjs
:
import Prism from 'prismjs';
Prism.highlightAll();
The exported Prism
object will be the fully-configured Prism instance.
In your .babelrc, register the plugin and configure its dependencies:
{
"plugins": [
["prismjs", {
"languages": ["javascript", "css", "markup"],
"plugins": ["line-numbers"],
"theme": "twilight",
"css": true
}]
]
}
Each key are used as follows:
languages
: Array of languages to include in the bundle. Those languages can be found here.plugins
: Array of plugins to include in the bundle. Those plugins can be found here.theme
: Name of theme to include in the bundle. Themes can be found here. Use lower-kebab-case
for the theme name, e.g. solarized-light
.css
: Boolean indicating whether to include .css
files in the result. Defaults to false
. If true
, import
s will be added for .css
files. Must be true
in order for theme
to work.FAQs
A babel plugin to use PrismJS with standard bundlers.
The npm package babel-plugin-prismjs receives a total of 43,611 weekly downloads. As such, babel-plugin-prismjs popularity was classified as popular.
We found that babel-plugin-prismjs 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
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.