Socket
Socket
Sign inDemoInstall

hex2dec

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hex2dec - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

3

index.js

@@ -83,2 +83,5 @@ /**

}
if (out === '') {
out = '0';
}
return out;

@@ -85,0 +88,0 @@ }

2

package.json
{
"name": "hex2dec",
"version": "1.1.1",
"version": "1.1.2",
"description": "Arbitrary precision decimal/hexadecimal converter.",

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

# hex2dec
[![Latest NPM release](https://img.shields.io/npm/v/hex2dec.svg)](https://www.npmjs.com/package/hex2dec)
[![Minzipped size](https://badgen.net/bundlephobia/minzip/hex2dec)](https://bundlephobia.com/result?p=hex2dec)
[![License](https://img.shields.io/npm/l/hex2dec.svg)](https://github.com/donmccurdy/hex2dec/blob/master/LICENSE)
[![Build Status](https://travis-ci.com/donmccurdy/hex2dec.svg?branch=master)](https://travis-ci.com/donmccurdy/hex2dec)
Arbitrary precision decimal↔️hexadecimal converter, from a [blog post](http://www.danvk.org/hex2dec.html) by [Dan Vanderkam](https://github.com/danvk). Supports positive integer values.
Arbitrary precision decimal↔️hexadecimal converter, from a [blog post](http://www.danvk.org/hex2dec.html) by [Dan Vanderkam](https://github.com/danvk). Supports non-negative integer values.

@@ -9,0 +10,0 @@ ## Usage

@@ -9,2 +9,3 @@ var chai = require('chai'),

expect(util.hexToDec('0xFA')).to.equal('250');
expect(util.hexToDec('0x0')).to.equal('0');
});

@@ -18,2 +19,3 @@

expect(util.decToHex('57')).to.equal('0x39');
expect(util.decToHex('0')).to.equal('0x0');
});

@@ -20,0 +22,0 @@

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