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

@dodona/dolos-lib

Package Overview
Dependencies
Maintainers
5
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

  • 2.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37
increased by2.78%
Maintainers
5
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

yarn add @dodona/dolos-lib # or,
npm install @dodona/dolos-lib

Node & Web environments

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.

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)
    yarn install
    
  2. Build the project with typescript
    yarn build
    
  3. Test the project with ava.js
    yarn test
    

Documentation

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

Keywords

FAQs

Package last updated on 22 Dec 2022

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