All Projects → hustcc → diff-text

hustcc / diff-text

Licence: other
Just get the diff of a simple inline text, simple mode.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to diff-text

Aehnlich
Show/Merge differences in directories and their content (text files) in Light/Dark designs
Stars: ✭ 73 (+461.54%)
Mutual labels:  diff, text-diff
ecomparatio
eComparatio: text diff and support for digital edition
Stars: ✭ 21 (+61.54%)
Mutual labels:  diff, text-diff
textdiff-create
Create lean text diff deltas.
Stars: ✭ 25 (+92.31%)
Mutual labels:  diff, text-diff
Jsondiffpatch
Diff & patch JavaScript objects
Stars: ✭ 3,951 (+30292.31%)
Mutual labels:  diff, text-diff
gonp
diff algorithm in Go
Stars: ✭ 42 (+223.08%)
Mutual labels:  diff
git-tui
Collection of human friendly terminal interface for git.
Stars: ✭ 95 (+630.77%)
Mutual labels:  diff
Dsladapter
🔥 Kotlin时代的Adapter, Dsl 的形式使用 RecyclerView.Adapter, 支持折叠展开, 树结构,悬停,情感图状态切换, 加载更多, 多类型Item,侧滑菜单等
Stars: ✭ 231 (+1676.92%)
Mutual labels:  diff
Listdiff
Swift port of IGListKit's IGListDiff
Stars: ✭ 225 (+1630.77%)
Mutual labels:  diff
dify
A fast pixel-by-pixel image comparison tool in Rust
Stars: ✭ 41 (+215.38%)
Mutual labels:  diff
langx-java
Java tools, helper, common utilities. A replacement of guava, apache-commons, hutool
Stars: ✭ 50 (+284.62%)
Mutual labels:  diff
knowledge-graph-change-language
Tools for working with KGCL
Stars: ✭ 14 (+7.69%)
Mutual labels:  diff
ttdo
Extend tinytest with diffobj
Stars: ✭ 21 (+61.54%)
Mutual labels:  diff
nano-staged
Tiny tool to run commands for modified, staged, and committed files in a GIT repository.
Stars: ✭ 347 (+2569.23%)
Mutual labels:  diff
Rxdatasources
UITableView and UICollectionView Data Sources for RxSwift (sections, animated updates, editing ...)
Stars: ✭ 2,784 (+21315.38%)
Mutual labels:  diff
intellij-diff-plugin
Syntax highlighting for .diff files and .patch files in IntelliJ IDEs
Stars: ✭ 17 (+30.77%)
Mutual labels:  diff
Diff So Fancy
Good-lookin' diffs. Actually… nah… The best-lookin' diffs. 🎉
Stars: ✭ 14,806 (+113792.31%)
Mutual labels:  diff
ExtDiff
Compare documents using MS Word from the command line.
Stars: ✭ 100 (+669.23%)
Mutual labels:  diff
extract-html-diff
extract difference between two html pages
Stars: ✭ 29 (+123.08%)
Mutual labels:  diff
diffy
Tools for finding and manipulating differences between files
Stars: ✭ 47 (+261.54%)
Mutual labels:  diff
graphql-schema-diff
📄🔄📄 Returns the diff of two GraphQL schemas. Detects dangerous and breaking changes.
Stars: ✭ 54 (+315.38%)
Mutual labels:  diff

diff-text

Inline text diff algorithm. Simplified from https://neil.fraser.name/writing/diff/. For input text diff in HTML with Chinese input software.

Build Status Coverage Status

Usage

npm i --save diff-text

var diffText = require('diff-text');

diffText('diff---text', 'diff+++text');

// will get array like below:
[
	[0, 'diff'], // equal
	[-1, '---'], // delete
	[1, '+++'],  // add
	[0, 'text']  // equal
]

Test & Perf

> npm run test

> npm run pref

diff-text x 1,238,388 ops/sec ±1.22% (88 runs sampled)

License

ISC@ProtoTeam.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].