Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dodona/dolos-lib

Package Overview
Dependencies
Maintainers
6
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dodona/dolos-lib

Code similarity detection based on the Winnowing algorithm

  • 3.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37
increased by2.78%
Maintainers
6
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 24 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc