# binarysjs

> A simple npm library to make binary search with javascript

Latest version **1.0.7** (published 2020-04-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install binarysjs
pnpm add binarysjs
yarn add binarysjs
bun add binarysjs
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2020-04-11 |
| First published | 2020-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 11 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Giovani Farias |
| Maintainers | giovaniif |

## Links

- npm: https://www.npmjs.com/package/binarysjs
- Repository: https://github.com/giovaniif/binarysjs
- Homepage: https://github.com/giovaniif/binarysjs#readme
- Issues: https://github.com/giovaniif/binarysjs/issues
- npm.io page: https://npm.io/package/binarysjs

## Dependencies (2)

- [jest](https://npm.io/package/jest.md) ^25.3.0
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.9.5

## Recent versions

- 1.0.7 (latest) — 2020-04-11
- 1.0.6 — 2020-04-11
- 1.0.5 — 2020-04-11
- 1.0.4 — 2020-04-11
- 1.0.3 — 2020-04-11
- 1.0.2 — 2020-04-10
- 1.0.1 — 2020-04-10
- 1.0.0 — 2020-04-10

## README

<h1 align="center">
Binarysjs
</h1>
<p align="center">
  A simple npm library to make binary search with javascript
</p>

<div margin="10px 0" align="center">
    <img alt="Github Top Language" src="https://img.shields.io/github/languages/top/giovaniif/binaryjs">
    <img alt="Github language count" src="https://img.shields.io/github/languages/count/giovaniif/binaryjs">
    <img alt="Size" src="https://img.shields.io/github/repo-size/giovaniif/binaryjs">
    <img alt="GitHub" src="https://img.shields.io/github/license/giovaniif/binaryjs">
</div>

## :information_source: How to use
```bash
  $ npm install binarysjs
  # $ yarn add binarysjs
```

```typescript
  const { getIndex } = require('binarysjs');

  const index = getIndex(target, array, startIndex?, endIndex?)
  // target = The value you want to find
  // array = The array you want to search in
  // startIndex && endIndex = optional parameters you don't want to check the whole array
```
### Return values
- Any number bigger than or equal to zero:  Found value index
- -1: Value not found


## :rocket: Techs
- Node.js
- Typescript
- Jest

## :memo: License
This project is under the MIT license. See the [LICENSE](./LICENSE) for more information.

Made with :hearts: by Giovani Farias :wave: [Get in touch!](https://www.linkedin.com/in/giovani-ricco-farias-b97316186/)

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