1.0.26 • Published 3 months ago

@node-novel/git-diff-log v1.0.26

Weekly downloads
13
License
ISC
Repository
github
Last release
3 months ago

README

比對目標路徑下的 git 歷史變化
適用於任何符合 `主資料夾/副資料夾/子路徑` 這種結構的資料夾
yarn add @node-novel/git-diff-log

index.d.ts

class.d.ts

demo

demo.ts

/**
 * Created by user on 2019/6/18.
 */
import { novelDiffFromLog } from '@node-novel/git-diff-log';
import { NovelDiffFromLogParser } from '@node-novel/git-diff-log/class';

let data = novelDiffFromLog({
 novelRoot: 'G:\\Users\\The Project\\nodejs-test\\node-novel2\\dist_novel',
 baseHash: 1,
});

console.dir(data, {
 depth: 5,
 colors: true,
});

let cd = new NovelDiffFromLogParser(data as any);

console.dir(cd.files().length);

let ps = cd.filterPathMains((s) => /_out$/.test(s));

console.dir(NovelDiffFromLogParser.files(ps).length);
1.0.26

3 months ago

1.0.25

3 months ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.19

3 years ago

1.0.17

3 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.4

4 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago