New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cpdiff

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpdiff

File difference tool for competitive programming.

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

cpdiff

IMPORTANT

The project was moved (and rewritten in Go) to:

https://github.com/ChrisVilches/cpdiff

Install using (globally since it's a CLI application):

npm install -g cpdiff

Compare your program's output to the accepted answer:

./your_program < data.in | cpdiff data.out

About

This is a simple utility for comparing the output of your program to the accepted answer or sample output. The name stands for competitive programming difference.

This program was developed because programs like sdiff or diff completely deform the layout when there are too many differences. This tool is meant to be specific for competitive programming.

Usage

Compare two files:

cpdiff file1 file2

Specify only one file, but pass the output of some other program as input (stdin).

some_program | cpdiff file1

Use - (dash) to specify which side of the comparison should receive input from stdin.

cpdiff - file1
# or
cpdiff file1 -

More competitive programming tools

C++ Runner

Try my C++ runner. I use this program to quickly run C++ files as if they were scripts, using the simple c++ my_program.cpp command.

Kattis Scraper

Scrapes the entire Kattis website, downloads all problems and helps you perform complex queries to find interesting problems.

https://github.com/ChrisVilches/Kattis-Scraper

Contribution

Feature requests, issues, bug reports, pull requests are welcome.

FAQs

Package last updated on 21 Oct 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