Skip to content

Latest commit

 

History

History

leveldb-store

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@jscpd/leveldb-store

store for jscpd, used for large repositories

Installation

npm install @jscpd/leveldb-store --save

Usage

import {Tokenizer} from '@jscpd/tokenizer';
import {
    Detector,
    IOptions,
    IClone,
    IStore,
    ITokenizer
} from '@jscpd/core';
import LeveldbStore from '@jscpd/leveldb-store';

const options: IOptions = {
    minLines: 5,
    maxLines: 500,
}

const tokenizer: ITokenizer = new Tokenizer();

const store: IStore = new LeveldbStore();

const detector = new Detector(tokenizer, store, [], options);

ga tracker

License

MIT © Andrey Kucherenko