cryptocurrency-address-detector
Detect which cryptocurrency an address corresponds to.
Install
~ ❯❯❯ npm install cryptocurrency-address-detector
Usage
const addressDetect = require('cryptocurrency-address-detector');
addressDetect().test('nodejsrocks 0x281055afc982d96fab65b3a49cac8b878184cb16');
addressDetect().test('nodejsrocks 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp');
addressDetect({exact: true}).test('nodejsrocks 1dice8EMZmqKvrGE4Qc9bUFf9PX3xaYDp foo');
addressDetect({exact: true}).test('LQL9pVH1LsMfKwt82Y2wGhNGkrjF8vwUst');
'nodejsrocks rG2ZJRab3EGBmpoxUyiF2guB3GoQTwMGEC unicorn XbtvGzi2JgjYTbTqabUjSREWeovDxznoyh rainbow'.match(addressDetect());
API
addressDetect([options])
Returns the cryptocurrency that an address corresponds to.
options.exact
Type: boolean
Default: false
(Detects any cryptocurrency address in a string)
Only match an exact string. Useful with RegExp#test()
to check what cryptocurrency a string is.
Supported Cryptocurrencies
License
MIT © Nikolaos Kamarinakis