Skip to content

Commit 734365f

Browse files
committed
chore: rename package to @interweb/visual-diff
1 parent d37a1e3 commit 734365f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

packages/visual-diff/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# visual-diff
1+
# @interweb/visual-diff
22

33
Beautiful 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

3131
const 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

138138
const 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

172172
detectLanguage('file.ts'); // 'typescript'
173173
detectLanguage('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
183183
const 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
195195
if (hasDifferences(result)) {

packages/visual-diff/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "visual-diff",
2+
"name": "@interweb/visual-diff",
33
"version": "0.0.1",
44
"author": "Constructive <developers@constructive.io>",
55
"description": "Beautiful visual diff with syntax highlighting for terminal and HTML output",

0 commit comments

Comments
 (0)