@git-diff-view/lowlight
Advanced tools
@@ -1105,3 +1105,3 @@ 'use strict'; | ||
| Object.defineProperty(instance, "type", { value: "class" }); | ||
| const versions = "0.0.35"; | ||
| const versions = "0.0.36"; | ||
| const highlighter = instance; | ||
@@ -1108,0 +1108,0 @@ |
@@ -1096,3 +1096,3 @@ 'use strict'; | ||
| Object.defineProperty(instance, "type", { value: "class" }); | ||
| const versions = "0.0.35"; | ||
| const versions = "0.0.36"; | ||
| const highlighter = instance; | ||
@@ -1099,0 +1099,0 @@ |
@@ -231,3 +231,3 @@ import { createLowlight, all } from 'lowlight'; | ||
| Object.defineProperty(instance, "type", { value: "class" }); | ||
| const versions = "0.0.35"; | ||
| const versions = "0.0.36"; | ||
| const highlighter = instance; | ||
@@ -234,0 +234,0 @@ |
+1
-1
@@ -6,3 +6,3 @@ { | ||
| "license": "MIT", | ||
| "version": "0.0.35", | ||
| "version": "0.0.36", | ||
| "main": "index.js", | ||
@@ -9,0 +9,0 @@ "types": "index.d.ts", |
+45
-2
@@ -1,3 +0,46 @@ | ||
| ## lowlight highlighter for @git-diff-view | ||
| # @git-diff-view/lowlight | ||
| This package have been include by [`@git-diff-view/core`](https://github.com/MrWangJustToDo/git-diff-view) | ||
| > Built-in syntax highlighter for @git-diff-view using lowlight | ||
| [](https://www.npmjs.com/package/@git-diff-view/lowlight) | ||
| [](https://www.npmjs.com/package/@git-diff-view/lowlight) | ||
| This package is the **default syntax highlighter** built into [@git-diff-view/core](../core). It uses [lowlight](https://github.com/wooorm/lowlight) (highlight.js wrapper) for syntax highlighting. | ||
| ## Features | ||
| - âś… Built into @git-diff-view/core by default | ||
| - âś… No additional installation required | ||
| - âś… Based on highlight.js | ||
| - âś… Supports 190+ languages | ||
| - âś… Fast and lightweight | ||
| - âś… Works in browser and Node.js | ||
| ## Usage | ||
| No explicit setup needed - it's automatically used by @git-diff-view/core: | ||
| ```typescript | ||
| import { DiffFile } from "@git-diff-view/core"; | ||
| const file = new DiffFile(/* ... */); | ||
| file.init(); // Automatically uses lowlight for syntax highlighting | ||
| ``` | ||
| ## When to Use | ||
| This is the default highlighter and suitable for most use cases. Consider [@git-diff-view/shiki](../shiki) if you need: | ||
| - More accurate syntax highlighting | ||
| - VSCode-compatible themes | ||
| - Better language grammar support | ||
| ## Related Packages | ||
| - [@git-diff-view/core](https://www.npmjs.com/package/@git-diff-view/core) - Core package that includes this | ||
| - [@git-diff-view/shiki](https://www.npmjs.com/package/@git-diff-view/shiki) - Alternative highlighter | ||
| - [lowlight](https://github.com/wooorm/lowlight) - Underlying library | ||
| - [highlight.js](https://highlightjs.org/) - Language definitions | ||
| ## License | ||
| MIT © [MrWangJustToDo](https://github.com/MrWangJustToDo) |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
352476
0.44%47
1075%