@dodona/dolos-lib
TypeScript icon, indicating that this package has built-in type declarations

3.3.1 • Public • Published

Dolos lib

This is the software library behind Dolos. It exposes a JavaScript API to integrate plagiarism detection in your applications.

Visit dolos.ugent.be for more information.

Installation

npm install @dodona/dolos-lib

Node & Web environments

Required: Node.js, Python 3 and a compiler (GCC)

Dolos uses tree-sitter to parse source code files. Tree-sitter currently only runs in node and will thus not run in browser environments.

If you only require the matching algorithms, you can use the platform-independent library Dolos Core.

Usage

import { Dolos } from "@dodona/dolos-lib";

const dolos = new Dolos();
const report = dolos.analyzePaths(["./file1.js", "./file2.js"]);

Development

  1. Install dependencies (preferably in the repository root)
    npm install
    
  2. Build the project with typescript
    npm run build
    
  3. Test the project with ava.js
    npm run test
    

Documentation

Visit our web page at https://dolos.ugent.be.

Package Sidebar

Install

npm i @dodona/dolos-lib

Weekly Downloads

82

Version

3.3.1

License

MIT

Unpacked Size

66.8 kB

Total Files

39

Last publish

Collaborators

  • jorg.vr
  • wddridde
  • rien
  • pverscha
  • bmesuere
  • charlottevp