# @x-oasis/html-fragment-diff

Diff algorithm for HTML fragments

## Installation

```bash
npm install @x-oasis/html-fragment-diff
```

## Quick Start

```typescript
import { /* exports */ } from '@x-oasis/html-fragment-diff';

// Your code here
```

## Key Features

- High performance
- TypeScript support
- No external dependencies
- Well-tested and stable

## API Reference

### Main Exports

See the source code on [GitHub](https://github.com/red-armor/x-oasis/tree/main/packages/diff/html-fragment-diff)

## Usage Examples

### Basic Example

```typescript
// See package documentation for detailed examples
```

### Advanced Usage

```typescript
// Advanced patterns and use cases
```

## TypeScript Support

Full TypeScript definitions are included:

```typescript
import { /* types */ } from '@x-oasis/html-fragment-diff';
```

## Performance

This package is optimized for:
- Small bundle size
- Fast execution
- Memory efficiency

## Browser Support

- Modern browsers (ES2015+)
- Node.js 12.0+

## Best Practices

✅ **Do:**
- Use according to documentation
- Check types before use
- Handle edge cases

❌ **Don't:**
- Misuse the API
- Ignore error handling
- Forget null checks

## Common Pitfalls

1. **Pitfall** - Description and solution
2. **Pitfall** - Description and solution

## Troubleshooting

**Problem**: Issue description

**Solution**: How to fix it

## Related Packages

- Other packages in [diff](/packages/diff/)
- Similar functionality in other categories

## See Also

- [Package Category](/packages/diff/)
- [All Packages](/packages/)
- [GitHub Issues](https://github.com/red-armor/x-oasis/issues)
- [Discussions](https://github.com/red-armor/x-oasis/discussions)

## License

MIT
