npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

copydog

v0.1.3

Published

A simple folder-based plagiarism detector.

Downloads

9

Readme

CopyDog

A command-line interface (CLI) tool crafted to empower users in identifying projects with similar code bases. Operating on the premise that each project resides in its own dedicated folder, this tool leverages the capabilities of ssdeep to conduct comprehensive file-by-file comparisons.

This tool is specifically designed to address the critical task of detecting potential plagiarism between student submissions. By analyzing the codebase similarities and employing the robustness of ssdeep, it swiftly identifies resemblances and patterns that might indicate instances of unauthorized code sharing.

This invaluable tool serves as a guardian of academic integrity, assisting educators and institutions in ensuring a level playing field for students. It streamlines the process of identifying code similarities, enabling prompt detection and intervention when necessary.

Experience the power and precision of this CLI tool as it diligently uncovers potential plagiarism within student submissions, promoting fairness and upholding academic standards.

Install

npm install -g copydog

or

yarn global add copydog

Usage

All flags are optional.

copydog -f proj -e js,php,css -t 60 -p 20

In this illustrative example, the tool assumes a project structure where each project is organized within a dedicated folder, identified by the "proj" prefix. It only compares files with extensions ".js", ".php", and ".css".

To determine similarity, the tool employs the ssdeep algorithm, considering two files to be sufficiently similar if a minimum similarity score of 60% is achieved. Furthermore, when assessing projects for potential suspicion, the tool identifies cases where at least 20% of the analyzed files exhibit similarities.

Help

Options:
      --version     Show version number                                [boolean]
  -f, --folders     list of folders to compare (prefix)   [string] [default: ""]
  -e, --extensions  list of extensions to consider
                                           [string] [default: "php,css,html,js"]
  -t, --threshold   threshold for a file to be considered the same
                                                          [number] [default: 50]
  -p, --print       percentage of matched files to be printed
                                                          [number] [default: 30]
      ----help