@nyamazing/ncmp
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ncmp

Compare two files by node.

Installing

npm install --save @nyamazing/ncmp

usage

Node:

const ncmp = require('@nyamazing/ncmp').ncmp;

ncmp('./file1', './file2')
  .then(x => console.log(x));

TypeScript:

import { ncmp } from '@nyamazing/ncmp';

ncmp('./file1', './file2')
  .then(x => console.log(x));

Command line:

$(npm bin)/ncmp ./file1 ./file2

Options

Offset:

Number of bytes to skip.

Node:

ncmp('./file1', './file2', 300);

Command line:

ncmp ./file1 ./file2 300

Package Sidebar

Install

npm i @nyamazing/ncmp

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.45 kB

Total Files

6

Last publish

Collaborators

  • nyamazing