Eddystone UID convertor
$ npm install --save eddystone-uid
var eddystoneUid = require('eddystone-uid');
eddystoneUid.toBeaconId('123456');
//=> 313233343536
eddystoneUid.toBeaconId('app-id');
//=> 6170702d6964
eddystoneUid.toNamespace('https://goo.gl/r8iJqW');
//=> randomly
eddystoneUid.toNamespace('8b0ca750-e7a7-4e14-bd99-095477cb3e77');
//=> 8b0ca750095477cb3e77
String to Beacon/Instance Id
Encoding type of Beacon Id, It returns String as encoding in hex
other is buf
to return raw Buffer
Using FQDN or UUID, which will be hashed and then truncated. Please refer more info
MIT © ragingwind