3.5.10 • Published 7 months ago

@jscpd/finder v3.5.10

Weekly downloads
26,235
License
MIT
Repository
github
Last release
7 months ago

@jscpd/finder

core package for detect duplicates, depends only on eventemitter3.

Installation

npm install @jscpd/finder --save

Usage

import {Tokenizer} from '@jscpd/tokenizer';
import {
    MemoryStore,
    IOptions,
    IClone,
    IStore,
    ITokenizer
} from '@jscpd/core';
import {EntryWithContent, getFilesToDetect, InFilesDetector} from '@jscpd/finder';

const options: IOptions = {
    minLines: 5,
    maxLines: 500,
    path: ['list of folders and files to analyse for clones']
}

const tokenizer: ITokenizer = new Tokenizer();
// here you can use any store what implement IStore interface
const store: IStore = new MemoryStore();
const statistic = new Statistic(options);

const files: EntryWithContent[] = getFilesToDetect(options);

const detector = new InFilesDetector(tokenizer, store, statistic, options);

( async () => {
  const clones: IClone[] = await detector.detect(files);
})();

ga tracker

License

MIT © Andrey Kucherenko

3.5.10

7 months ago

3.5.5

1 year ago

3.5.4

1 year ago

3.5.1

2 years ago

3.5.0

2 years ago

3.4.5

2 years ago

3.4.1

2 years ago

3.3.26

3 years ago

3.3.25

3 years ago

3.3.24

3 years ago

3.3.23

3 years ago

3.3.20

3 years ago

3.3.21

3 years ago

3.3.19

4 years ago

3.3.17

4 years ago

3.3.14

4 years ago

3.3.13

4 years ago

3.3.11

4 years ago

3.3.9

4 years ago

3.3.8

4 years ago

3.3.3

4 years ago

3.3.2

4 years ago

3.3.1

4 years ago

3.3.0-rc.10

4 years ago

3.3.0-rc.8

4 years ago

3.3.0-rc.7

4 years ago

3.3.0-rc.6

4 years ago

3.3.0-rc.5

4 years ago

3.3.0-rc.4

4 years ago

3.3.0-rc.3

4 years ago

3.3.0-alpha.8

4 years ago

3.3.0-alpha.2

4 years ago