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.
yarn add @dodona/dolos-lib # or,
npm install @dodona/dolos-lib
Dolos uses tree-sitter to parse source code files. Tree-sitter currently only runs in node and will thus not run in browser environments. Since some of the library's functionality is use by the Dolos Web UI, the dependency on tree-sitter is optional.
import { Dolos } from "@dodona/dolos-lib";
const dolos = new Dolos();
const report = dolos.analyzePaths(["./file1.js", "./file2.js"]);
- Install dependencies (preferably in the repository root)
yarn install
- Build the project with typescript
yarn build
- Test the project with ava.js
yarn test
Visit our web page at https://dolos.ugent.be.