npm.io
1.0.2 • Published 8 years ago

highest-power-two

Licence
MIT
Version
1.0.2
Deps
0
Vulns
0
Weekly
0
Stars
1

highestPowerTwo

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

Installation

npm install highest-power-two --save

Usage

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

Tests

npm test

Changelog

v1.0.2
  • Fix README instructions
v1.0.1
  • Changed prepublish script to prepare.
v1.0.0
  • Initial release

Keywords