normalize-hex
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -7,1 +7,2 @@ const normalizeHex = require('normalize-hex') | ||
console.log(normalizeHex('abc', { evenLength: true, addPrefix: true })) // '0x0abc' | ||
console.log(normalizeHex('0xabc')) // 'abc' |
{ | ||
"name": "normalize-hex", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Normalize a hex string", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,2 +23,3 @@ # normalize-hex | ||
console.log(normalizeHex('abc', { evenLength: true, addPrefix: true })) // '0x0abc' | ||
console.log(normalizeHex('0xabc')) // 'abc' | ||
``` | ||
@@ -25,0 +26,0 @@ |
@@ -5,3 +5,3 @@ const test = require('tape') | ||
test('normalizeHex', t => { | ||
t.plan(16) | ||
t.plan(17) | ||
@@ -24,2 +24,3 @@ t.equal(normalizeHex(), '') | ||
t.equal(normalizeHex('abc', { evenLength: true, addPrefix: true }), '0x0abc') | ||
t.equal(normalizeHex('0xabc'), 'abc') | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4619
57
29