🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

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
0.2.0
to
0.2.1
+1
-0
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){

+1
-1
{
"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');