1- # visual-diff
1+ # @ interweb/ visual-diff
22
33Beautiful visual diff with syntax highlighting for terminal and HTML output.
44
@@ -16,17 +16,17 @@ Beautiful visual diff with syntax highlighting for terminal and HTML output.
1616## Installation
1717
1818``` bash
19- npm install visual-diff
19+ npm install @interweb/ visual-diff
2020# or
21- pnpm add visual-diff
21+ pnpm add @interweb/ visual-diff
2222# or
23- yarn add visual-diff
23+ yarn add @interweb/ visual-diff
2424```
2525
2626## Quick Start
2727
2828``` typescript
29- import { diff , renderTerminal , renderHtml } from ' visual-diff' ;
29+ import { diff , renderTerminal , renderHtml } from ' @interweb/ visual-diff' ;
3030
3131const oldCode = ` function hello() {
3232 console.log("Hello");
@@ -133,7 +133,7 @@ Built-in themes:
133133#### Custom Themes
134134
135135``` typescript
136- import { createTheme } from ' visual-diff' ;
136+ import { createTheme } from ' @interweb/ visual-diff' ;
137137
138138const myTheme = createTheme (' custom' , {
139139 added: { fg: ' cyan' , bold: true },
@@ -167,7 +167,7 @@ Supported languages:
167167#### Language Detection
168168
169169``` typescript
170- import { detectLanguage } from ' visual-diff' ;
170+ import { detectLanguage } from ' @interweb/ visual-diff' ;
171171
172172detectLanguage (' file.ts' ); // 'typescript'
173173detectLanguage (' file.py' ); // 'python'
@@ -177,7 +177,7 @@ detectLanguage('file.sql'); // 'sql'
177177### Unified Diff Format
178178
179179``` typescript
180- import { createUnifiedDiff , parseUnifiedDiff } from ' visual-diff' ;
180+ import { createUnifiedDiff , parseUnifiedDiff } from ' @interweb/ visual-diff' ;
181181
182182// Create unified diff string
183183const unified = createUnifiedDiff (result );
@@ -189,7 +189,7 @@ const parsed = parseUnifiedDiff(unifiedDiffString);
189189### Utilities
190190
191191``` typescript
192- import { hasDifferences , countChanges } from ' visual-diff' ;
192+ import { hasDifferences , countChanges } from ' @interweb/ visual-diff' ;
193193
194194// Check if there are any differences
195195if (hasDifferences (result )) {
0 commit comments