{"name":"refractor","version":"2.3.0","description":"Lightweight, robust, elegant virtual syntax highlighting using Prism","license":"MIT","keywords":["syntax","code","ast","virtual","dom","highlight","highlighting","prism"],"repository":{"type":"git","url":"git+https://github.com/wooorm/refractor.git"},"bugs":{"url":"https://github.com/wooorm/refractor/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},{"name":"Conor Hastings","email":"hastings.conorm@gmail.com"},{"name":"Daniel Stefanovic","email":"daniel.stefanovic@gmail.com"},{"name":"Mike Kruk","email":"tamagokun@gmail.com"}],"files":["index.js","core.js","lang"],"dependencies":{"hastscript":"^3.1.0","prismjs":"~1.10.0"},"devDependencies":{"alpha-sort":"^2.0.1","arr-diff":"^4.0.0","array-unique":"^0.3.2","async":"^2.5.0","bail":"^1.0.2","browserify":"^15.0.0","chalk":"^2.0.0","detab":"^2.0.0","esmangle":"^1.0.0","is-hidden":"^1.1.0","mdast-zone":"^3.0.1","not":"^0.1.0","nyc":"^11.0.0","prettier":"^1.5.0","rehype":"^5.0.0","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","trim-lines":"^1.1.0","unist-builder":"^1.0.2","unist-util-remove-position":"^1.1.0","xo":"^0.18.0"},"scripts":{"build-generate":"node script/languages && node script/list","build-md":"remark . -qfo","build-bundle":"browserify index.js --bare -s refractor > refractor.js","build-mangle":"esmangle refractor.js > refractor.min.js","build":"npm run build-generate && npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"exclude":["lang/*.js"]},"xo":{"space":true,"esnext":false,"rules":{"unicorn/prefer-type-error":"off"},"ignores":["lang/*.js","refractor.js"]},"remarkConfig":{"plugins":["preset-wooorm","./script/count","./script/support"]},"gitHead":"f51546f40127aa1b652663071452a4cb16411927","homepage":"https://github.com/wooorm/refractor#readme","_id":"refractor@2.3.0","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"integrity":"sha512-nMrt/o9AqS6db87EY7G+kX861qZ+Rr/+yS6h1Bw0n7KfZEkZ5BLTbLWtm8bH3yGrljmNNthen/yUaNO59IfddA==","shasum":"b8cade8f88020f8836ca3622c6ef87fd2444d76a","tarball":"http://registry-npm.ywwl.com/refractor/download/refractor-2.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGDEfVxumb0EsLgr2amuD9CVjEXAgEcfWqBqrPK2FjSXAiEAyQNRFdfi6DEhEgrG6QkPcxWEc+hV8BhhcpA0wNGacFU="}],"size":129345,"noattachment":false,"key":"/refractor/-/refractor-2.3.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/refractor-2.3.0.tgz_1516535552101_0.025711153633892536"},"directories":{},"readme":"<!--lint disable no-html-->\n\n# refractor\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nLightweight, robust, elegant virtual syntax highlighting using [Prism][].\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Playground](#playground)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`refractor.highlight(value, language)`](#refractorhighlightvalue-language)\n    *   [`refractor.register(syntax)`](#refractorregistersyntax)\n    *   [`refractor.alias(name[, alias])`](#refractoraliasname-alias)\n    *   [`refractor.registered(aliasOrlanguage)`](#refractorregisteredaliasorlanguage)\n    *   [`refractor.listLanguages()`](#refractorlistlanguages)\n*   [Examples](#examples)\n    *   [Example: serializing hast as html](#example-serializing-hast-as-html)\n    *   [Example: turning hast into react nodes](#example-turning-hast-into-react-nodes)\n*   [Types](#types)\n*   [Data](#data)\n*   [CSS](#css)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Projects](#projects)\n*   [Contribute](#contribute)\n\n## What is this?\n\nThis package wraps [Prism][] to output objects (ASTs) instead of a string of\nHTML.\n\nPrism, through refractor, supports 270+ programming languages.\nSupporting all of them requires a lot of code.\nThat’s why there are three entry points for refractor:\n\n<!--count start-->\n\n*   `lib/core.js` — 0 languages\n*   `lib/common.js` (default) — 36 languages\n*   `lib/all.js` — 297 languages\n\n<!--count end-->\n\nBundled, minified, and gzipped, those are roughly 12.7 kB, 40 kB, and 211 kB.\n\n## When should I use this?\n\nThis package is useful when you want to perform syntax highlighting in a place\nwhere serialized HTML wouldn’t work or wouldn’t work well.\nFor example, you can use refractor when you want to show code in a CLI by\nrendering to ANSI sequences, when you’re using virtual DOM frameworks (such as\nReact or Preact) so that diffing can be performant, or when you’re working with\nASTs (rehype).\n\nA different package, [`lowlight`][lowlight], does the same as refractor but\nuses [`highlight.js`][hljs] instead.\nIf you’re looking for a *really good* (but rather heavy) highlighter, try\n[`starry-night`][starry-night].\n\n<!--Old name of the following section:-->\n\n<a name=\"demo\"></a>\n\n## Playground\n\nYou can play with refractor on the\n[interactive demo (Replit)](https://replit.com/@karlhorky/official-refractor-demo#index.js).\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install refractor\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {refractor} from 'https://esm.sh/refractor@4'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {refractor} from 'https://esm.sh/refractor@4?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {refractor} from 'refractor'\n\nconst tree = refractor.highlight('\"use strict\";', 'js')\n\nconsole.log(tree)\n```\n\nYields:\n\n```js\n{\n  type: 'root',\n  children: [\n    {\n      type: 'element',\n      tagName: 'span',\n      properties: {className: ['token', 'string']},\n      children: [{type: 'text', value: '\"use strict\"'}]\n    },\n    {\n      type: 'element',\n      tagName: 'span',\n      properties: {className: ['token', 'punctuation']},\n      children: [{type: 'text', value: ';'}]\n    }\n  ]\n}\n```\n\n## API\n\nThis package exports the identifier `refractor`.\nThere is no default export.\n\n### `refractor.highlight(value, language)`\n\nHighlight `value` (code) as `language` (programming language).\n\n###### Parameters\n\n*   `value` (`string`)\n    — code to highlight\n*   `language` (`string` or `Grammar`)\n    — programming language name, alias, or grammar.\n\n###### Returns\n\nNode representing highlighted code ([`Root`][root]).\n\n###### Example\n\n```js\nimport {refractor} from 'refractor/lib/core.js'\nimport css from 'refractor/lang/css.js'\n\nrefractor.register(css)\nconsole.log(refractor.highlight('em { color: red }', 'css'))\n```\n\nYields:\n\n```js\n{\n  type: 'root',\n  children: [\n    {type: 'element', tagName: 'span', properties: [Object], children: [Array]},\n    {type: 'text', value: ' '},\n    // …\n    {type: 'text', value: ' red '},\n    {type: 'element', tagName: 'span', properties: [Object], children: [Array]}\n  ]\n}\n```\n\n### `refractor.register(syntax)`\n\nRegister a syntax.\n\n###### Parameters\n\n*   `syntax` (`Function`)\n    — language function custom made for refractor, as in, the files in\n    `refractor/lang/*.js`\n\n###### Example\n\n```js\nimport {refractor} from 'refractor/lib/core.js'\nimport markdown from 'refractor/lang/markdown.js'\n\nrefractor.register(markdown)\n\nconsole.log(refractor.highlight('*Emphasis*', 'markdown'))\n```\n\nYields:\n\n```js\n{\n  type: 'root',\n  children: [\n    {type: 'element', tagName: 'span', properties: [Object], children: [Array]}\n  ]\n}\n```\n\n### `refractor.alias(name[, alias])`\n\nRegister aliases for already registered languages.\n\n###### Signatures\n\n*   `alias(name, alias|list)`\n*   `alias(aliases)`\n\n###### Parameters\n\n*   `language` (`string`)\n    — programming language [name][names]\n*   `alias` (`string`)\n    — new aliases for the programming language\n*   `list` (`Array<string>`)\n    — list of aliases\n*   `aliases` (`Record<language, alias|list>`)\n    — map of `language`s to `alias`es or `list`s\n\n###### Example\n\n```js\nimport {refractor} from 'refractor/lib/core.js'\nimport markdown from 'refractor/lang/markdown.js'\n\nrefractor.register(markdown)\n\n// refractor.highlight('*Emphasis*', 'mdown')\n// ^ would throw: Error: Unknown language: `mdown` is not registered\n\nrefractor.alias({markdown: ['mdown', 'mkdn', 'mdwn', 'ron']})\nrefractor.highlight('*Emphasis*', 'mdown')\n// ^ Works!\n```\n\n### `refractor.registered(aliasOrlanguage)`\n\nCheck whether an `alias` or `language` is registered.\n\n###### Parameters\n\n*   `aliasOrlanguage` (`string`)\n    — programming language name or alias\n\n###### Example\n\n```js\nimport {refractor} from 'refractor/lib/core.js'\nimport markdown from 'refractor/lang/markdown.js'\n\nconsole.log(refractor.registered('markdown')) //=> false\n\nrefractor.register(markdown)\n\nconsole.log(refractor.registered('markdown')) //=> true\n```\n\n### `refractor.listLanguages()`\n\nList all registered languages (names and aliases).\n\n###### Returns\n\n`Array<string>`.\n\n###### Example\n\n```js\nimport {refractor} from 'refractor/lib/core.js'\nimport markdown from 'refractor/lang/markdown.js'\n\nconsole.log(refractor.listLanguages()) //=> []\n\nrefractor.register(markdown)\n\nconsole.log(refractor.listLanguages())\n```\n\nYields:\n\n```js\n[\n  'markup', // Note that `markup` (a lot of xml based languages) is a dep of markdown.\n  'html',\n  // …\n  'markdown',\n  'md'\n]\n```\n\n## Examples\n\n### Example: serializing hast as html\n\nhast trees as returned by refractor can be serialized with\n[`hast-util-to-html`][hast-util-to-html]:\n\n```js\nimport {refractor} from 'refractor'\nimport {toHtml} from 'hast-util-to-html'\n\nconst tree = refractor.highlight('\"use strict\";', 'js')\n\nconsole.log(toHtml(tree))\n```\n\nYields:\n\n```html\n<span class=\"token string\">\"use strict\"</span><span class=\"token punctuation\">;</span>\n```\n\n### Example: turning hast into react nodes\n\nhast trees as returned by refractor can be turned into React (or Preact) with\n[`hast-to-hyperscript`][hast-to-hyperscript]:\n\n```js\nimport {refractor} from 'refractor'\nimport {toH} from 'hast-to-hyperscript'\nimport React from 'react'\n\nconst tree = refractor.highlight('\"use strict\";', 'js')\nconst react = toH(React.createElement, tree)\n\nconsole.log(react)\n```\n\nYields:\n\n```js\n{\n  '$$typeof': Symbol(react.element),\n  type: 'div',\n  key: 'h-1',\n  ref: null,\n  props: { children: [ [Object], [Object] ] },\n  _owner: null,\n  _store: {}\n}\n```\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types `Root`, `Grammar`, and `Syntax`.\n\n<!--Old name of the following section:-->\n\n<a name=\"syntaxes\"></a>\n\n## Data\n\nIf you’re using `refractor/lib/core.js`, no syntaxes are included.\nChecked syntaxes are included if you import `refractor` (or explicitly\n`refractor/lib/common.js`).\nUnchecked syntaxes are available through `refractor/lib/all.js`.\nYou can import `core` or `common` and manually add more languages as you please.\n\nPrism operates as a singleton: once you register a language in one place, it’ll\nbe available everywhere.\n\nOnly these custom built syntaxes will work with `refractor` because Prism’s own\nsyntaxes are made to work with global variables and are not importable.\n\n<!--support start-->\n\n*   [x] [`arduino`](https://github.com/wooorm/refractor/blob/main/lang/arduino.js) — alias: `ino`\n*   [x] [`bash`](https://github.com/wooorm/refractor/blob/main/lang/bash.js) — alias: `sh`, `shell`\n*   [x] [`basic`](https://github.com/wooorm/refractor/blob/main/lang/basic.js)\n*   [x] [`c`](https://github.com/wooorm/refractor/blob/main/lang/c.js)\n*   [x] [`clike`](https://github.com/wooorm/refractor/blob/main/lang/clike.js)\n*   [x] [`cpp`](https://github.com/wooorm/refractor/blob/main/lang/cpp.js)\n*   [x] [`csharp`](https://github.com/wooorm/refractor/blob/main/lang/csharp.js) — alias: `cs`, `dotnet`\n*   [x] [`css`](https://github.com/wooorm/refractor/blob/main/lang/css.js)\n*   [x] [`diff`](https://github.com/wooorm/refractor/blob/main/lang/diff.js)\n*   [x] [`go`](https://github.com/wooorm/refractor/blob/main/lang/go.js)\n*   [x] [`ini`](https://github.com/wooorm/refractor/blob/main/lang/ini.js)\n*   [x] [`java`](https://github.com/wooorm/refractor/blob/main/lang/java.js)\n*   [x] [`javascript`](https://github.com/wooorm/refractor/blob/main/lang/javascript.js) — alias: `js`\n*   [x] [`json`](https://github.com/wooorm/refractor/blob/main/lang/json.js) — alias: `webmanifest`\n*   [x] [`kotlin`](https://github.com/wooorm/refractor/blob/main/lang/kotlin.js) — alias: `kt`, `kts`\n*   [x] [`less`](https://github.com/wooorm/refractor/blob/main/lang/less.js)\n*   [x] [`lua`](https://github.com/wooorm/refractor/blob/main/lang/lua.js)\n*   [x] [`makefile`](https://github.com/wooorm/refractor/blob/main/lang/makefile.js)\n*   [x] [`markdown`](https://github.com/wooorm/refractor/blob/main/lang/markdown.js) — alias: `md`\n*   [x] [`markup`](https://github.com/wooorm/refractor/blob/main/lang/markup.js) — alias: `atom`, `html`, `mathml`, `rss`, `ssml`, `svg`, `xml`\n*   [x] [`markup-templating`](https://github.com/wooorm/refractor/blob/main/lang/markup-templating.js)\n*   [x] [`objectivec`](https://github.com/wooorm/refractor/blob/main/lang/objectivec.js) — alias: `objc`\n*   [x] [`perl`](https://github.com/wooorm/refractor/blob/main/lang/perl.js)\n*   [x] [`php`](https://github.com/wooorm/refractor/blob/main/lang/php.js)\n*   [x] [`python`](https://github.com/wooorm/refractor/blob/main/lang/python.js) — alias: `py`\n*   [x] [`r`](https://github.com/wooorm/refractor/blob/main/lang/r.js)\n*   [x] [`regex`](https://github.com/wooorm/refractor/blob/main/lang/regex.js)\n*   [x] [`ruby`](https://github.com/wooorm/refractor/blob/main/lang/ruby.js) — alias: `rb`\n*   [x] [`rust`](https://github.com/wooorm/refractor/blob/main/lang/rust.js)\n*   [x] [`sass`](https://github.com/wooorm/refractor/blob/main/lang/sass.js)\n*   [x] [`scss`](https://github.com/wooorm/refractor/blob/main/lang/scss.js)\n*   [x] [`sql`](https://github.com/wooorm/refractor/blob/main/lang/sql.js)\n*   [x] [`swift`](https://github.com/wooorm/refractor/blob/main/lang/swift.js)\n*   [x] [`typescript`](https://github.com/wooorm/refractor/blob/main/lang/typescript.js) — alias: `ts`\n*   [x] [`vbnet`](https://github.com/wooorm/refractor/blob/main/lang/vbnet.js)\n*   [x] [`yaml`](https://github.com/wooorm/refractor/blob/main/lang/yaml.js) — alias: `yml`\n*   [ ] [`abap`](https://github.com/wooorm/refractor/blob/main/lang/abap.js)\n*   [ ] [`abnf`](https://github.com/wooorm/refractor/blob/main/lang/abnf.js)\n*   [ ] [`actionscript`](https://github.com/wooorm/refractor/blob/main/lang/actionscript.js)\n*   [ ] [`ada`](https://github.com/wooorm/refractor/blob/main/lang/ada.js)\n*   [ ] [`agda`](https://github.com/wooorm/refractor/blob/main/lang/agda.js)\n*   [ ] [`al`](https://github.com/wooorm/refractor/blob/main/lang/al.js)\n*   [ ] [`antlr4`](https://github.com/wooorm/refractor/blob/main/lang/antlr4.js) — alias: `g4`\n*   [ ] [`apacheconf`](https://github.com/wooorm/refractor/blob/main/lang/apacheconf.js)\n*   [ ] [`apex`](https://github.com/wooorm/refractor/blob/main/lang/apex.js)\n*   [ ] [`apl`](https://github.com/wooorm/refractor/blob/main/lang/apl.js)\n*   [ ] [`applescript`](https://github.com/wooorm/refractor/blob/main/lang/applescript.js)\n*   [ ] [`aql`](https://github.com/wooorm/refractor/blob/main/lang/aql.js)\n*   [ ] [`arff`](https://github.com/wooorm/refractor/blob/main/lang/arff.js)\n*   [ ] [`armasm`](https://github.com/wooorm/refractor/blob/main/lang/armasm.js) — alias: `arm-asm`\n*   [ ] [`arturo`](https://github.com/wooorm/refractor/blob/main/lang/arturo.js) — alias: `art`\n*   [ ] [`asciidoc`](https://github.com/wooorm/refractor/blob/main/lang/asciidoc.js) — alias: `adoc`\n*   [ ] [`asm6502`](https://github.com/wooorm/refractor/blob/main/lang/asm6502.js)\n*   [ ] [`asmatmel`](https://github.com/wooorm/refractor/blob/main/lang/asmatmel.js)\n*   [ ] [`aspnet`](https://github.com/wooorm/refractor/blob/main/lang/aspnet.js)\n*   [ ] [`autohotkey`](https://github.com/wooorm/refractor/blob/main/lang/autohotkey.js)\n*   [ ] [`autoit`](https://github.com/wooorm/refractor/blob/main/lang/autoit.js)\n*   [ ] [`avisynth`](https://github.com/wooorm/refractor/blob/main/lang/avisynth.js) — alias: `avs`\n*   [ ] [`avro-idl`](https://github.com/wooorm/refractor/blob/main/lang/avro-idl.js) — alias: `avdl`\n*   [ ] [`awk`](https://github.com/wooorm/refractor/blob/main/lang/awk.js) — alias: `gawk`\n*   [ ] [`batch`](https://github.com/wooorm/refractor/blob/main/lang/batch.js)\n*   [ ] [`bbcode`](https://github.com/wooorm/refractor/blob/main/lang/bbcode.js) — alias: `shortcode`\n*   [ ] [`bbj`](https://github.com/wooorm/refractor/blob/main/lang/bbj.js)\n*   [ ] [`bicep`](https://github.com/wooorm/refractor/blob/main/lang/bicep.js)\n*   [ ] [`birb`](https://github.com/wooorm/refractor/blob/main/lang/birb.js)\n*   [ ] [`bison`](https://github.com/wooorm/refractor/blob/main/lang/bison.js)\n*   [ ] [`bnf`](https://github.com/wooorm/refractor/blob/main/lang/bnf.js) — alias: `rbnf`\n*   [ ] [`bqn`](https://github.com/wooorm/refractor/blob/main/lang/bqn.js)\n*   [ ] [`brainfuck`](https://github.com/wooorm/refractor/blob/main/lang/brainfuck.js)\n*   [ ] [`brightscript`](https://github.com/wooorm/refractor/blob/main/lang/brightscript.js)\n*   [ ] [`bro`](https://github.com/wooorm/refractor/blob/main/lang/bro.js)\n*   [ ] [`bsl`](https://github.com/wooorm/refractor/blob/main/lang/bsl.js) — alias: `oscript`\n*   [ ] [`cfscript`](https://github.com/wooorm/refractor/blob/main/lang/cfscript.js) — alias: `cfc`\n*   [ ] [`chaiscript`](https://github.com/wooorm/refractor/blob/main/lang/chaiscript.js)\n*   [ ] [`cil`](https://github.com/wooorm/refractor/blob/main/lang/cil.js)\n*   [ ] [`cilkc`](https://github.com/wooorm/refractor/blob/main/lang/cilkc.js) — alias: `cilk-c`\n*   [ ] [`cilkcpp`](https://github.com/wooorm/refractor/blob/main/lang/cilkcpp.js) — alias: `cilk`, `cilk-cpp`\n*   [ ] [`clojure`](https://github.com/wooorm/refractor/blob/main/lang/clojure.js)\n*   [ ] [`cmake`](https://github.com/wooorm/refractor/blob/main/lang/cmake.js)\n*   [ ] [`cobol`](https://github.com/wooorm/refractor/blob/main/lang/cobol.js)\n*   [ ] [`coffeescript`](https://github.com/wooorm/refractor/blob/main/lang/coffeescript.js) — alias: `coffee`\n*   [ ] [`concurnas`](https://github.com/wooorm/refractor/blob/main/lang/concurnas.js) — alias: `conc`\n*   [ ] [`cooklang`](https://github.com/wooorm/refractor/blob/main/lang/cooklang.js)\n*   [ ] [`coq`](https://github.com/wooorm/refractor/blob/main/lang/coq.js)\n*   [ ] [`crystal`](https://github.com/wooorm/refractor/blob/main/lang/crystal.js)\n*   [ ] [`cshtml`](https://github.com/wooorm/refractor/blob/main/lang/cshtml.js) — alias: `razor`\n*   [ ] [`csp`](https://github.com/wooorm/refractor/blob/main/lang/csp.js)\n*   [ ] [`css-extras`](https://github.com/wooorm/refractor/blob/main/lang/css-extras.js)\n*   [ ] [`csv`](https://github.com/wooorm/refractor/blob/main/lang/csv.js)\n*   [ ] [`cue`](https://github.com/wooorm/refractor/blob/main/lang/cue.js)\n*   [ ] [`cypher`](https://github.com/wooorm/refractor/blob/main/lang/cypher.js)\n*   [ ] [`d`](https://github.com/wooorm/refractor/blob/main/lang/d.js)\n*   [ ] [`dart`](https://github.com/wooorm/refractor/blob/main/lang/dart.js)\n*   [ ] [`dataweave`](https://github.com/wooorm/refractor/blob/main/lang/dataweave.js)\n*   [ ] [`dax`](https://github.com/wooorm/refractor/blob/main/lang/dax.js)\n*   [ ] [`dhall`](https://github.com/wooorm/refractor/blob/main/lang/dhall.js)\n*   [ ] [`django`](https://github.com/wooorm/refractor/blob/main/lang/django.js) — alias: `jinja2`\n*   [ ] [`dns-zone-file`](https://github.com/wooorm/refractor/blob/main/lang/dns-zone-file.js) — alias: `dns-zone`\n*   [ ] [`docker`](https://github.com/wooorm/refractor/blob/main/lang/docker.js) — alias: `dockerfile`\n*   [ ] [`dot`](https://github.com/wooorm/refractor/blob/main/lang/dot.js) — alias: `gv`\n*   [ ] [`ebnf`](https://github.com/wooorm/refractor/blob/main/lang/ebnf.js)\n*   [ ] [`editorconfig`](https://github.com/wooorm/refractor/blob/main/lang/editorconfig.js)\n*   [ ] [`eiffel`](https://github.com/wooorm/refractor/blob/main/lang/eiffel.js)\n*   [ ] [`ejs`](https://github.com/wooorm/refractor/blob/main/lang/ejs.js) — alias: `eta`\n*   [ ] [`elixir`](https://github.com/wooorm/refractor/blob/main/lang/elixir.js)\n*   [ ] [`elm`](https://github.com/wooorm/refractor/blob/main/lang/elm.js)\n*   [ ] [`erb`](https://github.com/wooorm/refractor/blob/main/lang/erb.js)\n*   [ ] [`erlang`](https://github.com/wooorm/refractor/blob/main/lang/erlang.js)\n*   [ ] [`etlua`](https://github.com/wooorm/refractor/blob/main/lang/etlua.js)\n*   [ ] [`excel-formula`](https://github.com/wooorm/refractor/blob/main/lang/excel-formula.js) — alias: `xls`, `xlsx`\n*   [ ] [`factor`](https://github.com/wooorm/refractor/blob/main/lang/factor.js)\n*   [ ] [`false`](https://github.com/wooorm/refractor/blob/main/lang/false.js)\n*   [ ] [`firestore-security-rules`](https://github.com/wooorm/refractor/blob/main/lang/firestore-security-rules.js)\n*   [ ] [`flow`](https://github.com/wooorm/refractor/blob/main/lang/flow.js)\n*   [ ] [`fortran`](https://github.com/wooorm/refractor/blob/main/lang/fortran.js)\n*   [ ] [`fsharp`](https://github.com/wooorm/refractor/blob/main/lang/fsharp.js)\n*   [ ] [`ftl`](https://github.com/wooorm/refractor/blob/main/lang/ftl.js)\n*   [ ] [`gap`](https://github.com/wooorm/refractor/blob/main/lang/gap.js)\n*   [ ] [`gcode`](https://github.com/wooorm/refractor/blob/main/lang/gcode.js)\n*   [ ] [`gdscript`](https://github.com/wooorm/refractor/blob/main/lang/gdscript.js)\n*   [ ] [`gedcom`](https://github.com/wooorm/refractor/blob/main/lang/gedcom.js)\n*   [ ] [`gettext`](https://github.com/wooorm/refractor/blob/main/lang/gettext.js) — alias: `po`\n*   [ ] [`gherkin`](https://github.com/wooorm/refractor/blob/main/lang/gherkin.js)\n*   [ ] [`git`](https://github.com/wooorm/refractor/blob/main/lang/git.js)\n*   [ ] [`glsl`](https://github.com/wooorm/refractor/blob/main/lang/glsl.js)\n*   [ ] [`gml`](https://github.com/wooorm/refractor/blob/main/lang/gml.js) — alias: `gamemakerlanguage`\n*   [ ] [`gn`](https://github.com/wooorm/refractor/blob/main/lang/gn.js) — alias: `gni`\n*   [ ] [`go-module`](https://github.com/wooorm/refractor/blob/main/lang/go-module.js) — alias: `go-mod`\n*   [ ] [`gradle`](https://github.com/wooorm/refractor/blob/main/lang/gradle.js)\n*   [ ] [`graphql`](https://github.com/wooorm/refractor/blob/main/lang/graphql.js)\n*   [ ] [`groovy`](https://github.com/wooorm/refractor/blob/main/lang/groovy.js)\n*   [ ] [`haml`](https://github.com/wooorm/refractor/blob/main/lang/haml.js)\n*   [ ] [`handlebars`](https://github.com/wooorm/refractor/blob/main/lang/handlebars.js) — alias: `hbs`, `mustache`\n*   [ ] [`haskell`](https://github.com/wooorm/refractor/blob/main/lang/haskell.js) — alias: `hs`\n*   [ ] [`haxe`](https://github.com/wooorm/refractor/blob/main/lang/haxe.js)\n*   [ ] [`hcl`](https://github.com/wooorm/refractor/blob/main/lang/hcl.js)\n*   [ ] [`hlsl`](https://github.com/wooorm/refractor/blob/main/lang/hlsl.js)\n*   [ ] [`hoon`](https://github.com/wooorm/refractor/blob/main/lang/hoon.js)\n*   [ ] [`hpkp`](https://github.com/wooorm/refractor/blob/main/lang/hpkp.js)\n*   [ ] [`hsts`](https://github.com/wooorm/refractor/blob/main/lang/hsts.js)\n*   [ ] [`http`](https://github.com/wooorm/refractor/blob/main/lang/http.js)\n*   [ ] [`ichigojam`](https://github.com/wooorm/refractor/blob/main/lang/ichigojam.js)\n*   [ ] [`icon`](https://github.com/wooorm/refractor/blob/main/lang/icon.js)\n*   [ ] [`icu-message-format`](https://github.com/wooorm/refractor/blob/main/lang/icu-message-format.js)\n*   [ ] [`idris`](https://github.com/wooorm/refractor/blob/main/lang/idris.js) — alias: `idr`\n*   [ ] [`iecst`](https://github.com/wooorm/refractor/blob/main/lang/iecst.js)\n*   [ ] [`ignore`](https://github.com/wooorm/refractor/blob/main/lang/ignore.js) — alias: `gitignore`, `hgignore`, `npmignore`\n*   [ ] [`inform7`](https://github.com/wooorm/refractor/blob/main/lang/inform7.js)\n*   [ ] [`io`](https://github.com/wooorm/refractor/blob/main/lang/io.js)\n*   [ ] [`j`](https://github.com/wooorm/refractor/blob/main/lang/j.js)\n*   [ ] [`javadoc`](https://github.com/wooorm/refractor/blob/main/lang/javadoc.js)\n*   [ ] [`javadoclike`](https://github.com/wooorm/refractor/blob/main/lang/javadoclike.js)\n*   [ ] [`javastacktrace`](https://github.com/wooorm/refractor/blob/main/lang/javastacktrace.js)\n*   [ ] [`jexl`](https://github.com/wooorm/refractor/blob/main/lang/jexl.js)\n*   [ ] [`jolie`](https://github.com/wooorm/refractor/blob/main/lang/jolie.js)\n*   [ ] [`jq`](https://github.com/wooorm/refractor/blob/main/lang/jq.js)\n*   [ ] [`js-extras`](https://github.com/wooorm/refractor/blob/main/lang/js-extras.js)\n*   [ ] [`js-templates`](https://github.com/wooorm/refractor/blob/main/lang/js-templates.js)\n*   [ ] [`jsdoc`](https://github.com/wooorm/refractor/blob/main/lang/jsdoc.js)\n*   [ ] [`json5`](https://github.com/wooorm/refractor/blob/main/lang/json5.js)\n*   [ ] [`jsonp`](https://github.com/wooorm/refractor/blob/main/lang/jsonp.js)\n*   [ ] [`jsstacktrace`](https://github.com/wooorm/refractor/blob/main/lang/jsstacktrace.js)\n*   [ ] [`jsx`](https://github.com/wooorm/refractor/blob/main/lang/jsx.js)\n*   [ ] [`julia`](https://github.com/wooorm/refractor/blob/main/lang/julia.js)\n*   [ ] [`keepalived`](https://github.com/wooorm/refractor/blob/main/lang/keepalived.js)\n*   [ ] [`keyman`](https://github.com/wooorm/refractor/blob/main/lang/keyman.js)\n*   [ ] [`kumir`](https://github.com/wooorm/refractor/blob/main/lang/kumir.js) — alias: `kum`\n*   [ ] [`kusto`](https://github.com/wooorm/refractor/blob/main/lang/kusto.js)\n*   [ ] [`latex`](https://github.com/wooorm/refractor/blob/main/lang/latex.js) — alias: `context`, `tex`\n*   [ ] [`latte`](https://github.com/wooorm/refractor/blob/main/lang/latte.js)\n*   [ ] [`lilypond`](https://github.com/wooorm/refractor/blob/main/lang/lilypond.js) — alias: `ly`\n*   [ ] [`linker-script`](https://github.com/wooorm/refractor/blob/main/lang/linker-script.js) — alias: `ld`\n*   [ ] [`liquid`](https://github.com/wooorm/refractor/blob/main/lang/liquid.js)\n*   [ ] [`lisp`](https://github.com/wooorm/refractor/blob/main/lang/lisp.js) — alias: `elisp`, `emacs`, `emacs-lisp`\n*   [ ] [`livescript`](https://github.com/wooorm/refractor/blob/main/lang/livescript.js)\n*   [ ] [`llvm`](https://github.com/wooorm/refractor/blob/main/lang/llvm.js)\n*   [ ] [`log`](https://github.com/wooorm/refractor/blob/main/lang/log.js)\n*   [ ] [`lolcode`](https://github.com/wooorm/refractor/blob/main/lang/lolcode.js)\n*   [ ] [`magma`](https://github.com/wooorm/refractor/blob/main/lang/magma.js)\n*   [ ] [`mata`](https://github.com/wooorm/refractor/blob/main/lang/mata.js)\n*   [ ] [`matlab`](https://github.com/wooorm/refractor/blob/main/lang/matlab.js)\n*   [ ] [`maxscript`](https://github.com/wooorm/refractor/blob/main/lang/maxscript.js)\n*   [ ] [`mel`](https://github.com/wooorm/refractor/blob/main/lang/mel.js)\n*   [ ] [`mermaid`](https://github.com/wooorm/refractor/blob/main/lang/mermaid.js)\n*   [ ] [`metafont`](https://github.com/wooorm/refractor/blob/main/lang/metafont.js)\n*   [ ] [`mizar`](https://github.com/wooorm/refractor/blob/main/lang/mizar.js)\n*   [ ] [`mongodb`](https://github.com/wooorm/refractor/blob/main/lang/mongodb.js)\n*   [ ] [`monkey`](https://github.com/wooorm/refractor/blob/main/lang/monkey.js)\n*   [ ] [`moonscript`](https://github.com/wooorm/refractor/blob/main/lang/moonscript.js) — alias: `moon`\n*   [ ] [`n1ql`](https://github.com/wooorm/refractor/blob/main/lang/n1ql.js)\n*   [ ] [`n4js`](https://github.com/wooorm/refractor/blob/main/lang/n4js.js) — alias: `n4jsd`\n*   [ ] [`nand2tetris-hdl`](https://github.com/wooorm/refractor/blob/main/lang/nand2tetris-hdl.js)\n*   [ ] [`naniscript`](https://github.com/wooorm/refractor/blob/main/lang/naniscript.js) — alias: `nani`\n*   [ ] [`nasm`](https://github.com/wooorm/refractor/blob/main/lang/nasm.js)\n*   [ ] [`neon`](https://github.com/wooorm/refractor/blob/main/lang/neon.js)\n*   [ ] [`nevod`](https://github.com/wooorm/refractor/blob/main/lang/nevod.js)\n*   [ ] [`nginx`](https://github.com/wooorm/refractor/blob/main/lang/nginx.js)\n*   [ ] [`nim`](https://github.com/wooorm/refractor/blob/main/lang/nim.js)\n*   [ ] [`nix`](https://github.com/wooorm/refractor/blob/main/lang/nix.js)\n*   [ ] [`nsis`](https://github.com/wooorm/refractor/blob/main/lang/nsis.js)\n*   [ ] [`ocaml`](https://github.com/wooorm/refractor/blob/main/lang/ocaml.js)\n*   [ ] [`odin`](https://github.com/wooorm/refractor/blob/main/lang/odin.js)\n*   [ ] [`opencl`](https://github.com/wooorm/refractor/blob/main/lang/opencl.js)\n*   [ ] [`openqasm`](https://github.com/wooorm/refractor/blob/main/lang/openqasm.js) — alias: `qasm`\n*   [ ] [`oz`](https://github.com/wooorm/refractor/blob/main/lang/oz.js)\n*   [ ] [`parigp`](https://github.com/wooorm/refractor/blob/main/lang/parigp.js)\n*   [ ] [`parser`](https://github.com/wooorm/refractor/blob/main/lang/parser.js)\n*   [ ] [`pascal`](https://github.com/wooorm/refractor/blob/main/lang/pascal.js) — alias: `objectpascal`\n*   [ ] [`pascaligo`](https://github.com/wooorm/refractor/blob/main/lang/pascaligo.js)\n*   [ ] [`pcaxis`](https://github.com/wooorm/refractor/blob/main/lang/pcaxis.js) — alias: `px`\n*   [ ] [`peoplecode`](https://github.com/wooorm/refractor/blob/main/lang/peoplecode.js) — alias: `pcode`\n*   [ ] [`php-extras`](https://github.com/wooorm/refractor/blob/main/lang/php-extras.js)\n*   [ ] [`phpdoc`](https://github.com/wooorm/refractor/blob/main/lang/phpdoc.js)\n*   [ ] [`plant-uml`](https://github.com/wooorm/refractor/blob/main/lang/plant-uml.js) — alias: `plantuml`\n*   [ ] [`plsql`](https://github.com/wooorm/refractor/blob/main/lang/plsql.js)\n*   [ ] [`powerquery`](https://github.com/wooorm/refractor/blob/main/lang/powerquery.js) — alias: `mscript`, `pq`\n*   [ ] [`powershell`](https://github.com/wooorm/refractor/blob/main/lang/powershell.js)\n*   [ ] [`processing`](https://github.com/wooorm/refractor/blob/main/lang/processing.js)\n*   [ ] [`prolog`](https://github.com/wooorm/refractor/blob/main/lang/prolog.js)\n*   [ ] [`promql`](https://github.com/wooorm/refractor/blob/main/lang/promql.js)\n*   [ ] [`properties`](https://github.com/wooorm/refractor/blob/main/lang/properties.js)\n*   [ ] [`protobuf`](https://github.com/wooorm/refractor/blob/main/lang/protobuf.js)\n*   [ ] [`psl`](https://github.com/wooorm/refractor/blob/main/lang/psl.js)\n*   [ ] [`pug`](https://github.com/wooorm/refractor/blob/main/lang/pug.js)\n*   [ ] [`puppet`](https://github.com/wooorm/refractor/blob/main/lang/puppet.js)\n*   [ ] [`pure`](https://github.com/wooorm/refractor/blob/main/lang/pure.js)\n*   [ ] [`purebasic`](https://github.com/wooorm/refractor/blob/main/lang/purebasic.js) — alias: `pbfasm`\n*   [ ] [`purescript`](https://github.com/wooorm/refractor/blob/main/lang/purescript.js) — alias: `purs`\n*   [ ] [`q`](https://github.com/wooorm/refractor/blob/main/lang/q.js)\n*   [ ] [`qml`](https://github.com/wooorm/refractor/blob/main/lang/qml.js)\n*   [ ] [`qore`](https://github.com/wooorm/refractor/blob/main/lang/qore.js)\n*   [ ] [`qsharp`](https://github.com/wooorm/refractor/blob/main/lang/qsharp.js) — alias: `qs`\n*   [ ] [`racket`](https://github.com/wooorm/refractor/blob/main/lang/racket.js) — alias: `rkt`\n*   [ ] [`reason`](https://github.com/wooorm/refractor/blob/main/lang/reason.js)\n*   [ ] [`rego`](https://github.com/wooorm/refractor/blob/main/lang/rego.js)\n*   [ ] [`renpy`](https://github.com/wooorm/refractor/blob/main/lang/renpy.js) — alias: `rpy`\n*   [ ] [`rescript`](https://github.com/wooorm/refractor/blob/main/lang/rescript.js) — alias: `res`\n*   [ ] [`rest`](https://github.com/wooorm/refractor/blob/main/lang/rest.js)\n*   [ ] [`rip`](https://github.com/wooorm/refractor/blob/main/lang/rip.js)\n*   [ ] [`roboconf`](https://github.com/wooorm/refractor/blob/main/lang/roboconf.js)\n*   [ ] [`robotframework`](https://github.com/wooorm/refractor/blob/main/lang/robotframework.js) — alias: `robot`\n*   [ ] [`sas`](https://github.com/wooorm/refractor/blob/main/lang/sas.js)\n*   [ ] [`scala`](https://github.com/wooorm/refractor/blob/main/lang/scala.js)\n*   [ ] [`scheme`](https://github.com/wooorm/refractor/blob/main/lang/scheme.js)\n*   [ ] [`shell-session`](https://github.com/wooorm/refractor/blob/main/lang/shell-session.js) — alias: `sh-session`, `shellsession`\n*   [ ] [`smali`](https://github.com/wooorm/refractor/blob/main/lang/smali.js)\n*   [ ] [`smalltalk`](https://github.com/wooorm/refractor/blob/main/lang/smalltalk.js)\n*   [ ] [`smarty`](https://github.com/wooorm/refractor/blob/main/lang/smarty.js)\n*   [ ] [`sml`](https://github.com/wooorm/refractor/blob/main/lang/sml.js) — alias: `smlnj`\n*   [ ] [`solidity`](https://github.com/wooorm/refractor/blob/main/lang/solidity.js) — alias: `sol`\n*   [ ] [`solution-file`](https://github.com/wooorm/refractor/blob/main/lang/solution-file.js) — alias: `sln`\n*   [ ] [`soy`](https://github.com/wooorm/refractor/blob/main/lang/soy.js)\n*   [ ] [`sparql`](https://github.com/wooorm/refractor/blob/main/lang/sparql.js) — alias: `rq`\n*   [ ] [`splunk-spl`](https://github.com/wooorm/refractor/blob/main/lang/splunk-spl.js)\n*   [ ] [`sqf`](https://github.com/wooorm/refractor/blob/main/lang/sqf.js)\n*   [ ] [`squirrel`](https://github.com/wooorm/refractor/blob/main/lang/squirrel.js)\n*   [ ] [`stan`](https://github.com/wooorm/refractor/blob/main/lang/stan.js)\n*   [ ] [`stata`](https://github.com/wooorm/refractor/blob/main/lang/stata.js)\n*   [ ] [`stylus`](https://github.com/wooorm/refractor/blob/main/lang/stylus.js)\n*   [ ] [`supercollider`](https://github.com/wooorm/refractor/blob/main/lang/supercollider.js) — alias: `sclang`\n*   [ ] [`systemd`](https://github.com/wooorm/refractor/blob/main/lang/systemd.js)\n*   [ ] [`t4-cs`](https://github.com/wooorm/refractor/blob/main/lang/t4-cs.js) — alias: `t4`\n*   [ ] [`t4-templating`](https://github.com/wooorm/refractor/blob/main/lang/t4-templating.js)\n*   [ ] [`t4-vb`](https://github.com/wooorm/refractor/blob/main/lang/t4-vb.js)\n*   [ ] [`tap`](https://github.com/wooorm/refractor/blob/main/lang/tap.js)\n*   [ ] [`tcl`](https://github.com/wooorm/refractor/blob/main/lang/tcl.js)\n*   [ ] [`textile`](https://github.com/wooorm/refractor/blob/main/lang/textile.js)\n*   [ ] [`toml`](https://github.com/wooorm/refractor/blob/main/lang/toml.js)\n*   [ ] [`tremor`](https://github.com/wooorm/refractor/blob/main/lang/tremor.js) — alias: `trickle`, `troy`\n*   [ ] [`tsx`](https://github.com/wooorm/refractor/blob/main/lang/tsx.js)\n*   [ ] [`tt2`](https://github.com/wooorm/refractor/blob/main/lang/tt2.js)\n*   [ ] [`turtle`](https://github.com/wooorm/refractor/blob/main/lang/turtle.js) — alias: `trig`\n*   [ ] [`twig`](https://github.com/wooorm/refractor/blob/main/lang/twig.js)\n*   [ ] [`typoscript`](https://github.com/wooorm/refractor/blob/main/lang/typoscript.js) — alias: `tsconfig`\n*   [ ] [`unrealscript`](https://github.com/wooorm/refractor/blob/main/lang/unrealscript.js) — alias: `uc`, `uscript`\n*   [ ] [`uorazor`](https://github.com/wooorm/refractor/blob/main/lang/uorazor.js)\n*   [ ] [`uri`](https://github.com/wooorm/refractor/blob/main/lang/uri.js) — alias: `url`\n*   [ ] [`v`](https://github.com/wooorm/refractor/blob/main/lang/v.js)\n*   [ ] [`vala`](https://github.com/wooorm/refractor/blob/main/lang/vala.js)\n*   [ ] [`velocity`](https://github.com/wooorm/refractor/blob/main/lang/velocity.js)\n*   [ ] [`verilog`](https://github.com/wooorm/refractor/blob/main/lang/verilog.js)\n*   [ ] [`vhdl`](https://github.com/wooorm/refractor/blob/main/lang/vhdl.js)\n*   [ ] [`vim`](https://github.com/wooorm/refractor/blob/main/lang/vim.js)\n*   [ ] [`visual-basic`](https://github.com/wooorm/refractor/blob/main/lang/visual-basic.js) — alias: `vb`, `vba`\n*   [ ] [`warpscript`](https://github.com/wooorm/refractor/blob/main/lang/warpscript.js)\n*   [ ] [`wasm`](https://github.com/wooorm/refractor/blob/main/lang/wasm.js)\n*   [ ] [`web-idl`](https://github.com/wooorm/refractor/blob/main/lang/web-idl.js) — alias: `webidl`\n*   [ ] [`wgsl`](https://github.com/wooorm/refractor/blob/main/lang/wgsl.js)\n*   [ ] [`wiki`](https://github.com/wooorm/refractor/blob/main/lang/wiki.js)\n*   [ ] [`wolfram`](https://github.com/wooorm/refractor/blob/main/lang/wolfram.js) — alias: `mathematica`, `nb`, `wl`\n*   [ ] [`wren`](https://github.com/wooorm/refractor/blob/main/lang/wren.js)\n*   [ ] [`xeora`](https://github.com/wooorm/refractor/blob/main/lang/xeora.js) — alias: `xeoracube`\n*   [ ] [`xml-doc`](https://github.com/wooorm/refractor/blob/main/lang/xml-doc.js)\n*   [ ] [`xojo`](https://github.com/wooorm/refractor/blob/main/lang/xojo.js)\n*   [ ] [`xquery`](https://github.com/wooorm/refractor/blob/main/lang/xquery.js)\n*   [ ] [`yang`](https://github.com/wooorm/refractor/blob/main/lang/yang.js)\n*   [ ] [`zig`](https://github.com/wooorm/refractor/blob/main/lang/zig.js)\n\n<!--support end-->\n\n## CSS\n\n`refractor` does not inject CSS for the syntax highlighted code (because well,\nrefractor doesn’t have to be turned into HTML and might not run in a browser!).\nIf you are in a browser, you can use any Prism theme.\nFor example, to get Prism Dark from cdnjs:\n\n```html\n<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/prism/1.27.0/themes/prism-dark.min.css\">\n```\n\n<!--Old name of the following section:-->\n\n<a name=\"plugins\"></a>\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\nOnly the custom built syntaxes in `refractor/lang/*.js` will work with\n`refractor` as Prism’s own syntaxes are made to work with global variables and\nare not importable.\n\nrefractor also does not support Prism plugins, due to the same limitations, and\nthat they almost exclusively deal with the DOM.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n*   [`lowlight`][lowlight]\n    — the same as refractor but with [`highlight.js`][hljs]\n*   [`starry-night`][starry-night]\n    — similar but like GitHub and really good\n\n## Projects\n\n*   [`react-syntax-highlighter`](https://github.com/react-syntax-highlighter/react-syntax-highlighter)\n    — [React][] component for syntax highlighting\n*   [`@mapbox/rehype-prism`](https://github.com/mapbox/rehype-prism)\n    — [**rehype**][rehype] plugin to highlight code\n    blocks\n*   [`react-refractor`](https://github.com/rexxars/react-refractor)\n    — syntax highlighter for [React][]\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/refractor/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/refractor/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/refractor.svg\n\n[coverage]: https://codecov.io/github/wooorm/refractor\n\n[downloads-badge]: https://img.shields.io/npm/dm/refractor.svg\n\n[downloads]: https://www.npmjs.com/package/refractor\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/refractor.svg\n\n[size]: https://bundlephobia.com/result?p=refractor\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[rehype]: https://github.com/rehypejs/rehype\n\n[names]: https://prismjs.com/#languages-list\n\n[react]: https://facebook.github.io/react/\n\n[prism]: https://github.com/PrismJS/prism\n\n[lowlight]: https://github.com/wooorm/lowlight\n\n[hljs]: https://github.com/highlightjs/highlight.js\n\n[starry-night]: https://github.com/wooorm/starry-night\n\n[root]: https://github.com/syntax-tree/hast#root\n\n[hast-util-to-html]: https://github.com/syntax-tree/hast-util-to-html\n\n[hast-to-hyperscript]: https://github.com/syntax-tree/hast-to-hyperscript\n","publish_time":1516535552262,"_cnpm_publish_time":1516535552262,"dist-tags":{"latest":"5.0.0","legacy":"3.6.0"}}