# binary-mask

> Creates a binary mask based on the differences of two arrays

Latest version **0.0.2** (published 2016-10-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install binary-mask
pnpm add binary-mask
yarn add binary-mask
bun add binary-mask
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-10-28 |
| First published | 2016-10-27 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | leonardj |
| Maintainers | leonardj |
| Keywords | binary, mask, boolean, array, comparison |

## Links

- npm: https://www.npmjs.com/package/binary-mask
- npm.io page: https://npm.io/package/binary-mask

## Recent versions

- 0.0.2 (latest) — 2016-10-28
- 0.0.1 — 2016-10-27

## README

# binary-mask
Creates a binary mask based on the differences of two arrays

[![Build Status](https://travis-ci.org/Leonard1020/binary-mask.svg)](https://travis-ci.org/Leonard1020/binary-mask)

### Installation
```javascript
npm install binary-mask
```

### Usage
```javascript
var mask = require('binary-mask');

var first = [1, 2, 3];
var second = [1, 5, '3'];

var final = mask(first, second); // [0, 1, 1]
```

### Using strings
```javascript
var mask = require('binary-mask');

var first = 'Hello';
var second = 'hello';

var final = mask(first, second); // [1, 0, 0, 0, 0]
```

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