babel-plugin-prismjs weekly downloads statistics
By jamesdigioia · npm · Babel plugins
A babel plugin to use PrismJS with standard bundlers.
babel-plugin-prismjs has 74,885 recorded weekly downloads on npm, an increase of 21.3% over the past 30 days, ranking #691 of 3,247 tracked listings.
About babel-plugin-prismjs
babel-plugin-prismjs 
A babel plugin to use PrismJS with standard bundlers.
How to Use
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.
Limitations
- You must be using ES6 imports to load PrismJS.
Configuring the plugin
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 or"all"to include all languages. 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.css: Boolean indicating whether to include.cssfiles in the result. Defaults tofalse. Iftrue,imports will be added for.cssfiles. Must betruein order forthemeto work.
Description from the npm listing.
- prismjs
- syntax-highlighting
- babel-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm Babel plugins plugins
All 20 babel-plugin-prismjs alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/babel-plugin-prismjs. First seen Oct 16, 2026; last successful collection Dec 3, 2026. See the methodology.