Coil monetization to UUID
const uuidParse = require('uuid-parse')
const base64url = require('base64url')
const urlPart = 'Jgsl3HHISgu9oP9T2IwLOg'
const bytes = base64url.toBuffer(urlPart)
const uuid = uuidParse.unparse(bytes)
console.log('Decoded: ' + uuid)
console.log('Reversed: ' + base64url.fromBase64(Buffer.from(uuidParse.parse(uuid)).toString('base64')))
no comments