nwdiff:在两个字符串之间生成单词级的diff输出,例如GNU wdiff

时间:2024-06-16 03:05:15
【文件属性】:

文件名称:nwdiff:在两个字符串之间生成单词级的diff输出,例如GNU wdiff

文件大小:79KB

文件格式:ZIP

更新时间:2024-06-16 03:05:15

JavaScript

nwdiff 生成两个字符串之间的单词级diff输出,例如 。 用上色(可选)。 import nwdiff from 'nwdiff' nwdiff ( 'one and two' , 'ne anwooo' ) // === '[-o-]ne an[-d t-]wo{+oo+}' (maybe with color ANSI sequences) // or custom options (defaults below) nwdiff ( 'one and two' , 'ne anwooo' , { delimiters : false , // Whether to print delimiters for start/end startInsert : '{+' , endInsert : '+}' , startDelete : '[-' , endD


【文件预览】:
nwdiff-master
----.babelrc(47B)
----package.json(608B)
----LICENSE(1KB)
----src()
--------index.js(1KB)
--------index.test.js(2KB)
----.gitignore(1KB)
----README.md(885B)
----yarn.lock(199KB)

网友评论