@jscpd/finder
detector of copy/paste in files
Last updated 6 months ago by apk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @jscpd/finder 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 3.3.0-alpha.8                                ...           canary (5 years ago)
  • 4.0.1                                ...           latest (6 months ago)
  • 4.0.0                                ...           rc (6 months ago)

34 Versions

  • 4.0.1                                ...           6 months ago
  • 4.0.0                                ...           6 months ago
  • 3.5.10                                ...           a year ago
  • 3.5.5                                ...           2 years ago
  • 3.5.4                                ...           2 years ago
  • 3.5.1                                ...           2 years ago
  • 3.5.0                                ...           2 years ago
  • 3.4.5                                ...           3 years ago
  • 3.4.1                                ...           3 years ago
  • 3.3.26                                ...           3 years ago
  • 3.3.25                                ...           4 years ago
  • 3.3.24                                ...           4 years ago
  • 3.3.23                                ...           4 years ago
  • 3.3.21                                ...           4 years ago
  • 3.3.20                                ...           4 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                                ...           5 years ago
  • 3.3.0-rc.5                                ...           5 years ago
  • 3.3.0-rc.4                                ...           5 years ago
  • 3.3.0-rc.3                                ...           5 years ago
  • 3.3.0-alpha.8                                ...           5 years ago
  • 3.3.0-alpha.2                                ...           5 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (10)
Dev Dependencies (10)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE