Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.2.0 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');

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc