🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More →
Socket
Book a DemoSign in
Socket

@git-diff-view/lowlight

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@git-diff-view/lowlight - npm Package Compare versions

Comparing version
0.0.35
to
0.0.36
+1
-1
dist/cjs/index.development.js

@@ -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 @@

@@ -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",

@@ -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
[![npm version](https://img.shields.io/npm/v/@git-diff-view/lowlight)](https://www.npmjs.com/package/@git-diff-view/lowlight)
[![npm downloads](https://img.shields.io/npm/dm/@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)