Skip to content

jdf2e/jdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jdiff 本地 <===> 远程 对比工具

可将本地目录中的前端资源与线上进行比对,确保安全。

npm install -g jdiff

usage

jdiff -l ./myproject/xxx  -r http://www.domain.com/xxx -t 1d

-l local 指定本地目录
-r remote 指定远程 url
-t time 指定过滤指定时间内的本地文件, (1d = 1天, 1h = 一小时)

js  html css 自动格式化, 即使线上代码被压缩也可比对.

阿弥陀佛, 已开光, start 后佛祖保佑, 上线平安.

//                            _ooOoo_
//                           o8888888o
//                           88" . "88
//                           (| -_- |)
//                            O\ = /O
//                        ____/`---'\____
//                      .   ' \\| |// `.
//                       / \\||| : |||// \
//                     / _||||| -:- |||||- \
//                       | | \\\ - /// | |
//                     | \_| ''\---/'' | |
//                      \ .-\__ `-` ___/-. /
//                   ___`. .' /--.--\ `. . __
//                ."" '< `.___\_<|>_/___.' >'"".
//               | | : `- \`.;`\ _ /`;.`/ - ` : | |
//                 \ \ `-. \_ __\ /__ _/ .-` / /
//         ======`-.____`-.___\_____/___.-`____.-'======
//                            `=---='
//
//         .............................................