# search-ray

> searching algorithms for arrays

Latest version **1.0.1** (published 2021-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install search-ray
pnpm add search-ray
yarn add search-ray
bun add search-ray
```

## 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.1 |
| Published | 2021-08-28 |
| First published | 2021-08-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | pawan deore |
| Maintainers | pawandeore |
| Keywords | javascript, algorithms, search, algorithm |

## Links

- npm: https://www.npmjs.com/package/search-ray
- Repository: https://github.com/pavandeore/search-ray
- Homepage: https://github.com/pavandeore/search-ray#readme
- Issues: https://github.com/pavandeore/search-ray/issues
- npm.io page: https://npm.io/package/search-ray

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-08-28
- 1.0.0 — 2021-08-28

## README

# search-ray

search-ray is javascript library to search for item in array and it will return index of the found element.

## Installation

Use the package manager npm to install search-ray.

```bash
npm install search-ray
```

## Usage

Program for linear search

```python

const search = require('search-ray');

console.log(search.linearSearch([1,2,3,5],5))   // [3]

```


Program for binary search

```python

const search = require('search-ray');

console.log(search.binarySearch([1,2,3,5],5))   // 3

```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

## Sponsor this project
[![Support via PayPal](https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg)](https://www.paypal.me/pduser/)

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