normalize-hex
Normalize a hex string
Install
npm install normalize-hex
Getting started
const normalizeHex = console // 'abc'console // '0abc'console // '0xabc'console // '0x0abc'console // 'abc'console // '0'console // '0x00'
Test
npm test