{"_id":"babel-plugin-prismjs","_rev":"4182150","name":"babel-plugin-prismjs","description":"A babel plugin to use PrismJS with standard bundlers.","dist-tags":{"latest":"2.1.0"},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"time":{"modified":"2026-03-02T02:05:18.000Z","created":"2018-05-24T13:55:06.891Z","2.1.0":"2021-07-07T12:59:49.953Z","2.0.1":"2020-01-19T22:39:45.119Z","2.0.0":"2020-01-06T13:23:23.470Z","1.1.1":"2019-07-24T16:25:03.544Z","1.1.0":"2019-07-18T17:16:30.436Z","1.0.2":"2018-06-15T17:08:39.968Z","1.0.1":"2018-06-15T15:13:18.737Z","1.0.0":"2018-05-24T13:55:06.891Z"},"users":{},"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"versions":{"2.1.0":{"name":"babel-plugin-prismjs","version":"2.1.0","description":"A babel plugin to use PrismJS with standard bundlers.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","debug":"mocha --inspect-brk --require @babel/register","debug:watch":"mocha --watch --inspect-brk --require @babel/register","fix":"eslint --fix ./src ./test","lint":"eslint ./src ./test","prepack":"npm run build","test":"mocha --require @babel/register","watch":"mocha --watch --require @babel/register"},"peerDependencies":{"prismjs":"^1.18.0"},"keywords":["prismjs","syntax-highlighting","babel-plugin"],"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"license":"MIT","devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","eslint":"^4.19.1","eslint-config-valtech":"^1.1.0","mocha":"^6.2.0","prismjs":"^1.0.0"},"gitHead":"5df1d27361f20a2879a2d02446dbbd2d7a14f101","_id":"babel-plugin-prismjs@2.1.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"shasum":"ade627896106326ad04d6d77fba92877618de571","size":3452,"noattachment":false,"key":"/babel-plugin-prismjs/-/babel-plugin-prismjs-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-prismjs/download/babel-plugin-prismjs-2.1.0.tgz"},"_npmUser":{"name":"jamesdigioia","email":"jamesorodig@gmail.com"},"directories":{},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-prismjs_2.1.0_1625662789832_0.8128541191146095"},"_hasShrinkwrap":false,"publish_time":1625662789953,"_cnpm_publish_time":1625662789953,"_cnpmcore_publish_time":"2021-12-16T10:49:33.692Z"},"2.0.1":{"name":"babel-plugin-prismjs","version":"2.0.1","description":"A babel plugin to use PrismJS with standard bundlers.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","debug":"mocha --inspect-brk --require @babel/register","debug:watch":"mocha --watch --inspect-brk --require @babel/register","fix":"eslint --fix ./src ./test","lint":"eslint ./src ./test","prepack":"npm run build","test":"mocha --require @babel/register","watch":"mocha --watch --require @babel/register"},"peerDependencies":{"prismjs":"^1.18.0"},"keywords":["prismjs","syntax-highlighting","babel-plugin"],"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"license":"MIT","devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","eslint":"^4.19.1","eslint-config-valtech":"^1.1.0","mocha":"^6.2.0","prismjs":"^1.0.0"},"gitHead":"f203300f61f1bfca9b0c86ea8532e9b312abcaad","_id":"babel-plugin-prismjs@2.0.1","_nodeVersion":"13.4.0","_npmVersion":"6.13.4","dist":{"shasum":"b56095f423926662259de8f5ee50a7afbcf0fd92","size":2872,"noattachment":false,"key":"/babel-plugin-prismjs/-/babel-plugin-prismjs-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-prismjs/download/babel-plugin-prismjs-2.0.1.tgz"},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"_npmUser":{"name":"jamesdigioia","email":"jamesorodig@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-prismjs_2.0.1_1579473584837_0.9543145874215926"},"_hasShrinkwrap":false,"publish_time":1579473585119,"_cnpm_publish_time":1579473585119,"_cnpmcore_publish_time":"2021-12-16T10:49:34.202Z"},"2.0.0":{"name":"babel-plugin-prismjs","version":"2.0.0","description":"A babel plugin to use PrismJS with standard bundlers.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","debug":"mocha --inspect-brk --require @babel/register","debug:watch":"mocha --watch --inspect-brk --require @babel/register","fix":"eslint --fix ./src ./test","lint":"eslint ./src ./test","prepack":"npm run build","test":"mocha --require @babel/register","watch":"mocha --watch --require @babel/register"},"peerDependencies":{"prismjs":"^1.18.0"},"keywords":["prismjs","syntax-highlighting","babel-plugin"],"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"license":"MIT","devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","eslint":"^4.19.1","eslint-config-valtech":"^1.1.0","mocha":"^6.2.0","prismjs":"^1.0.0"},"gitHead":"79949d51e3489ba9afe1d13e69eb4d9934b14e30","_id":"babel-plugin-prismjs@2.0.0","_shasum":"e8d844fde465766e0563d20c86a9fadbe742a673","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.17.1","_npmUser":{"name":"jamesdigioia","email":"jamesorodig@gmail.com"},"dist":{"shasum":"e8d844fde465766e0563d20c86a9fadbe742a673","size":2816,"noattachment":false,"key":"/babel-plugin-prismjs/-/babel-plugin-prismjs-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-prismjs/download/babel-plugin-prismjs-2.0.0.tgz"},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-prismjs_2.0.0_1578317003326_0.7712052268185137"},"_hasShrinkwrap":false,"publish_time":1578317003470,"_cnpm_publish_time":1578317003470,"_cnpmcore_publish_time":"2021-12-16T10:49:34.387Z"},"1.1.1":{"name":"babel-plugin-prismjs","version":"1.1.1","description":"A babel plugin to use PrismJS with standard bundlers.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","debug":"mocha --inspect-brk --require @babel/register","debug:watch":"mocha --watch --inspect-brk --require @babel/register","fix":"eslint --fix ./src ./test","lint":"eslint ./src ./test","prepack":"npm run build","test":"mocha --require @babel/register","watch":"mocha --watch --require @babel/register"},"peerDependencies":{"prismjs":"^1.0.0"},"keywords":["prismjs","syntax-highlighting","babel-plugin"],"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"license":"MIT","devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","eslint":"^4.19.1","eslint-config-valtech":"^1.1.0","mocha":"^6.2.0","prismjs":"^1.0.0"},"gitHead":"7eb21a67e28a34427df714e1a30afc143dbfd5e4","_id":"babel-plugin-prismjs@1.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"jamesdigioia","email":"jamesorodig@gmail.com"},"dist":{"shasum":"974b2346d6ea8bdb2b16c3fdf1342bbe97fc6f51","size":3508,"noattachment":false,"key":"/babel-plugin-prismjs/-/babel-plugin-prismjs-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-prismjs/download/babel-plugin-prismjs-1.1.1.tgz"},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-prismjs_1.1.1_1563985503405_0.16230877439595393"},"_hasShrinkwrap":false,"publish_time":1563985503544,"_cnpm_publish_time":1563985503544,"_cnpmcore_publish_time":"2021-12-16T10:49:34.597Z"},"1.1.0":{"name":"babel-plugin-prismjs","version":"1.1.0","description":"A babel plugin to use PrismJS with standard bundlers.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","debug":"mocha --inspect-brk --require @babel/register","debug:watch":"mocha --watch --inspect-brk --require @babel/register","fix":"eslint --fix ./src ./test","lint":"eslint ./src ./test","prepack":"npm run build","test":"mocha --require @babel/register","watch":"mocha --watch --require @babel/register"},"peerDependencies":{"prismjs":"^1.0.0"},"keywords":["prismjs","syntax-highlighting","babel-plugin"],"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"license":"MIT","devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","@babel/register":"^7.0.0","eslint":"^4.19.1","eslint-config-valtech":"^1.1.0","mocha":"^5.2.0","prismjs":"^1.0.0"},"gitHead":"a284feec286aab825f1c7f3b353b11a4abdce169","_id":"babel-plugin-prismjs@1.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"jamesdigioia","email":"jamesorodig@gmail.com"},"dist":{"shasum":"c4791c6b6bce58912f2a5982417b1fadc26293fb","size":3309,"noattachment":false,"key":"/babel-plugin-prismjs/-/babel-plugin-prismjs-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-prismjs/download/babel-plugin-prismjs-1.1.0.tgz"},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-prismjs_1.1.0_1563470190289_0.4287290781252777"},"_hasShrinkwrap":false,"publish_time":1563470190436,"_cnpm_publish_time":1563470190436,"_cnpmcore_publish_time":"2021-12-16T10:49:34.813Z"},"1.0.2":{"name":"babel-plugin-prismjs","version":"1.0.2","description":"A babel plugin to use PrismJS with standard bundlers.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","debug":"mocha --inspect-brk --require @babel/register","debug:watch":"mocha --watch --inspect-brk --require @babel/register","fix":"eslint --fix ./src ./test","lint":"eslint ./src ./test","prepack":"npm run build","test":"mocha --require @babel/register","watch":"mocha --watch --require @babel/register"},"peerDependencies":{"prismjs":"^1.0.0"},"keywords":["prismjs","syntax-highlighting","babel-plugin"],"files":["lib","src"],"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"license":"MIT","devDependencies":{"@babel/cli":"7.0.0-beta.47","@babel/core":"7.0.0-beta.47","@babel/preset-env":"7.0.0-beta.47","@babel/register":"7.0.0-beta.47","eslint":"^4.19.1","eslint-config-valtech":"^1.1.0","mocha":"^5.2.0","prismjs":"^1.14.0"},"gitHead":"5e9aa31711016c4dbc77f9a58418edd64438f942","_id":"babel-plugin-prismjs@1.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"jamesdigioia","email":"jamesorodig@gmail.com"},"dist":{"shasum":"837bf6b32168b3ba624c054fc755946deb1b63fa","size":2901,"noattachment":false,"key":"/babel-plugin-prismjs/-/babel-plugin-prismjs-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-prismjs/download/babel-plugin-prismjs-1.0.2.tgz"},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-prismjs_1.0.2_1529082519907_0.8399397282022643"},"_hasShrinkwrap":false,"publish_time":1529082519968,"_cnpm_publish_time":1529082519968,"_cnpmcore_publish_time":"2021-12-16T10:49:35.010Z"},"1.0.1":{"name":"babel-plugin-prismjs","version":"1.0.1","description":"A babel plugin to use PrismJS with standard bundlers.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","debug":"mocha --inspect-brk --require @babel/register","debug:watch":"mocha --watch --inspect-brk --require @babel/register","fix":"eslint --fix ./src ./test","lint":"eslint ./src ./test","prepack":"npm run build","test":"mocha --require @babel/register","watch":"mocha --watch --require @babel/register"},"peerDependencies":{"prismjs":"^1.0.0"},"keywords":["prismjs","syntax-highlighting","babel-plugin"],"files":["lib"],"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"license":"MIT","devDependencies":{"@babel/cli":"7.0.0-beta.47","@babel/core":"7.0.0-beta.47","@babel/preset-env":"7.0.0-beta.47","@babel/register":"7.0.0-beta.47","eslint":"^4.19.1","eslint-config-valtech":"^1.1.0","mocha":"^5.2.0","prismjs":"^1.14.0"},"gitHead":"d12b5a9568cc4250a42f74d24497f198a02bed7c","_id":"babel-plugin-prismjs@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.2","_npmUser":{"name":"jamesdigioia","email":"jamesorodig@gmail.com"},"dist":{"shasum":"36fd0a7a1a7002db379167732b4a847ce107e7d6","size":2508,"noattachment":false,"key":"/babel-plugin-prismjs/-/babel-plugin-prismjs-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-prismjs/download/babel-plugin-prismjs-1.0.1.tgz"},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-prismjs_1.0.1_1529075598661_0.8807874648096579"},"_hasShrinkwrap":false,"publish_time":1529075598737,"_cnpm_publish_time":1529075598737,"_cnpmcore_publish_time":"2021-12-16T10:49:35.250Z"},"1.0.0":{"name":"babel-plugin-prismjs","version":"1.0.0","description":"A babel plugin to use PrismJS with standard bundlers.","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","debug":"mocha --inspect-brk --require @babel/register","debug:watch":"mocha --watch --inspect-brk --require @babel/register","fix":"eslint --fix ./src ./test","lint":"eslint ./src ./test","test":"mocha --require @babel/register","watch":"mocha --watch --require @babel/register"},"peerDependencies":{"prismjs":"^1.0.0"},"keywords":["prismjs","syntax-highlighting","babel-plugin"],"author":{"name":"James DiGioia","email":"jamesorodig@gmail.com","url":"http://jamesdigioia.com"},"license":"MIT","devDependencies":{"@babel/cli":"7.0.0-beta.47","@babel/core":"7.0.0-beta.47","@babel/preset-env":"7.0.0-beta.47","@babel/register":"7.0.0-beta.47","eslint":"^4.19.1","eslint-config-valtech":"^1.1.0","mocha":"^5.2.0","prismjs":"^1.14.0"},"gitHead":"803cb118547cb7d956b479f0cd8f074596b3fcac","_id":"babel-plugin-prismjs@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"10.1.0","_npmUser":{"name":"jamesdigioia","email":"jamesorodig@gmail.com"},"dist":{"shasum":"c4338abdbd744527b2a5900796cd0b647515c560","size":3415,"noattachment":false,"key":"/babel-plugin-prismjs/-/babel-plugin-prismjs-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/babel-plugin-prismjs/download/babel-plugin-prismjs-1.0.0.tgz"},"maintainers":[{"name":"jamesdigioia","email":"jamesorodig@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-prismjs_1.0.0_1527170106759_0.7101145353817451"},"_hasShrinkwrap":false,"publish_time":1527170106891,"_cnpm_publish_time":1527170106891,"_cnpmcore_publish_time":"2021-12-16T10:49:35.436Z"}},"readme":"# babel-plugin-prismjs [![Build Status](https://travis-ci.org/mAAdhaTTah/babel-plugin-prismjs.svg?branch=master)](https://travis-ci.org/mAAdhaTTah/babel-plugin-prismjs)\n\nA babel plugin to use PrismJS with standard bundlers.\n\n## How to Use\nThis plugin allows you to treat PrismJS as a standard module and configure what languages, plugins, & themes you want to bundle with Prism.\n\nIn your code, import `prismjs`:\n\n```js\nimport Prism from 'prismjs';\n\nPrism.highlightAll();\n```\n\nThe exported `Prism` object will be the fully-configured Prism instance.\n\n### Limitations\n\n- You must be using ES6 imports to load PrismJS.\n\n## Configuring the plugin\n\nIn your .babelrc, register the plugin and configure its dependencies:\n\n```json\n{\n  \"plugins\": [\n    [\"prismjs\", {\n        \"languages\": [\"javascript\", \"css\", \"markup\"],\n        \"plugins\": [\"line-numbers\"],\n        \"theme\": \"twilight\",\n        \"css\": true\n    }]\n  ]\n}\n```\n\nEach key are used as follows:\n\n* `languages`: Array of languages to include in the bundle or `\"all\"` to include all languages. Those languages can be found [here](http://prismjs.com/#languages-list).\n* `plugins`: Array of plugins to include in the bundle. Those plugins can be found [here](http://prismjs.com/#plugins).\n* `theme`: Name of theme to include in the bundle. Themes can be found [here](http://prismjs.com/).\n* `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.\n","_attachments":{},"license":"MIT"}