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.2 to 0.2.3

4

index.js

@@ -55,2 +55,6 @@ 'use strict';

if (_.isNaN(bytes) || !_.isNumber(bytes)){
bytes = 0;
}
// convert to bytes

@@ -57,0 +61,0 @@ if (inputUnit !== 'B'){

2

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

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

@@ -70,1 +70,8 @@ 'use strict';

});
it('should return 0 for NaN, null, undefined, or falsy byte values', function () {
expect(byte(NaN)).to.equal('0 B');
expect(byte(undefined)).to.equal('0 B');
expect(byte(null)).to.equal('0 B');
expect(byte('')).to.equal('0 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