# operator-compare

> [ABANDONED] Comparing two variables with operator as argument

Latest version **1.0.3** (published 2015-07-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install operator-compare
pnpm add operator-compare
yarn add operator-compare
bun add operator-compare
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2015-07-15 |
| First published | 2013-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Kudera |
| Maintainers | sakren |
| Keywords | operator, compare |

## Links

- npm: https://www.npmjs.com/package/operator-compare
- Repository: git@github.com:Carrooi/Node-OperatorCompare
- Homepage: https://github.com/Carrooi/Node-OperatorCompare
- Issues: https://github.com/Carrooi/Node-OperatorCompare/issues
- npm.io page: https://npm.io/package/operator-compare

## Recent versions

- 1.0.3 (latest) — 2015-07-15
- 1.0.2 — 2015-07-14
- 1.0.1 — 2013-08-02
- 1.0.0 — 2013-08-02

## README

# operator-compare

[![NPM version](https://img.shields.io/npm/v/operator-compare.svg?style=flat-square)](http://badge.fury.io/js/operator-compare)
[![Dependency Status](https://img.shields.io/gemnasium/Carrooi/Node-OperatorCompare.svg?style=flat-square)](https://gemnasium.com/Carrooi/Node-OperatorCompare)
[![Build Status](https://img.shields.io/travis/Carrooi/Node-OperatorCompare.svg?style=flat-square)](https://travis-ci.org/Carrooi/Node-OperatorCompare)

[![Donate](https://img.shields.io/badge/donate-PayPal-brightgreen.svg?style=flat-square)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7MLNUGKRU7XQU)

## Abandoned

Unfortunately I don't have any more time to maintain this repository :-( 

![sad cat](https://raw.githubusercontent.com/sakren/sakren.github.io/master/images/sad-kitten.jpg)

Comparing two variables with operator as argument.

## Usage

```
var compare = require('compare');

compare(5, '<', 10);			// result: true
```

As you can see, this is just simple function, which compare two variables by operator as second argument. List of available
operators is bellow.

## Operators

There are just classic operators with some others.

```
   Operator   |   Equivalent
--------------+----------------
      >       |          >
      >=      |          >=
      <       |          <
      <=      |          <=
     =, ==    |         ===
   !, !=, <>  |         !==
```

Last two lines are sets of operators, so operator `<>` is the same one as `!=`.

If you will try to set some unknown operator, exception will be thrown.

## Changelog

* 1.0.3
	+ Abandon project

* 1.0.2
	+ Move under Carrooi organization
	+ Abandon repository
	+ Rewrite to pure javascript
	+ Fix typos
	+ Add to travis
	+ Update dependencies

* 1.0.1
	+ Typo in readme

* 1.0.0
	+ Initial commit

---
_Source: https://npm.io/package/operator-compare · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
