# highest-power-two

> Find the highest power of two below a given number

Latest version **1.0.2** (published 2017-12-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install highest-power-two
pnpm add highest-power-two
yarn add highest-power-two
bun add highest-power-two
```

## 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.2 |
| Published | 2017-12-20 |
| First published | 2017-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ben Darlow |
| Maintainers | kapowaz |
| Keywords | numbers, base-two |

## Links

- npm: https://www.npmjs.com/package/highest-power-two
- Repository: https://github.com/kapowaz/highest-power-two
- Homepage: https://github.com/kapowaz/highest-power-two#readme
- Issues: https://github.com/brentertz/highest-power-two/issues
- npm.io page: https://npm.io/package/highest-power-two

## Alternatives

- [random-seedable](https://npm.io/package/random-seedable.md) — 27.9K weekly downloads
- [n2words](https://npm.io/package/n2words.md) — 22.2K weekly downloads
- [@stdlib/math-base-special-factorialln](https://npm.io/package/@stdlib/math-base-special-factorialln.md) — 5.7K weekly downloads
- [@stdlib/math-base-special-abs2](https://npm.io/package/@stdlib/math-base-special-abs2.md) — 1.7K weekly downloads
- [commons-math-interpolation](https://npm.io/package/commons-math-interpolation.md) — 1.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-12-20
- 1.0.1 — 2017-12-20
- 1.0.0 — 2017-12-20

## README

# highestPowerTwo

A small utility to find the highest power of two below a given value.

## Installation

```shell
npm install highest-power-two --save
```

## Usage

```js
var highestPowerTwo = require('highest-power-two').default;
var result = highestPowerTwo(51);
console.log('result', result); // => "result 32"
```

## Tests

```shell
npm test
```

## Changelog

### v1.0.2

- Fix README instructions

### v1.0.1

- Changed `prepublish` script to `prepare`.

### v1.0.0

- Initial release

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