🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

8bits

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

8bits - npm Package Compare versions

Comparing version

to
0.2.1

1

index.js

@@ -40,2 +40,3 @@ 'use strict';

inputUnit = inputUnit.toUpperCase();
outputUnit = outputUnit.toUpperCase();
var i = _.indexOf(units, inputUnit);

@@ -42,0 +43,0 @@ if (i < 0){

2

package.json
{
"name": "8bits",
"version": "0.2.0",
"version": "0.2.1",
"description": "A Javascript library for manipulating and converting byte values",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -48,2 +48,3 @@ 'use strict';

it('should convert from one unit to another', function () {
expect(byte(1, {from: 'kB', to: 'kB'})).to.equal('1 kB');
expect(byte(100, {from: 'kB', to: 'B'})).to.equal('100000 B');

@@ -50,0 +51,0 @@ expect(byte(100, {from: 'kB', to: 'B', binary: true})).to.equal('102400 B');