node-patchfile:给定差异的补丁文件

时间:2021-03-26 15:34:53
【文件属性】:
文件名称:node-patchfile:给定差异的补丁文件
文件大小:4KB
文件格式:ZIP
更新时间:2021-03-26 15:34:53
diff file patch JavaScript 补丁文件 给定差异的补丁文件。 安装 npm i patchfile 如何使用? const daffy = require ( 'daffy' ) ; const patchfile = require ( 'patchfile' ) ; const patch = daffy . createPatch ( 'hello' , 'hello world' ) ; const tryToCatch = require ( 'try-to-catch' ) ; /* patch file thet not bigger then 2kb */ const [ e ] = await tryToCatch ( patchfile , 'hello.txt' , patch , { size : 2048 } ) ; if ( e ) console . error ( e . me
【文件预览】:
node-patchfile-master
----.eslintrc.json(237B)
----lib()
--------patchfile.js(797B)
----.npmignore(4B)
----.travis.yml(174B)
----LICENSE(1KB)
----README.md(450B)
----.madrun.js(222B)
----.gitignore(27B)
----ChangeLog(1KB)
----package.json(910B)

网友评论