UNPKG
watch-xdelta
Version:
latest (1.9.0)
1.9.0
1.8.1
1.8.0
1.7.0
1.6.1
1.6.0
1.5.3
1.5.2
1.5.0
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.2.0
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.1
1.0.0
smart-watch xdelta script
watch-xdelta
/
test.js
13 lines
(11 loc)
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
/** * Created by iyww on 15/8/20. */
'use strict'
;
import
xdelta
from
'./index'
;
import
co
from
'co'
;
import
bfs
from
'babel-fs'
;
co
(
function
*() {
let
size =
yield
xdelta
({
oldPath
:
'SmartWatchv1.bin'
,
newPath
:
'SmartWatchv2.bin'
,
diffPath
:
'xdelta.bin'
});
console
.
log
(size); });