formatters

Currently there are just a few common formatters we use across projects. Feel free to suggest new formatters!

import { formatCid, formatCidForBackend } from '@dormakaba/digital-reactnative-client';

console.log(formatCid('12345')); // -> "0000 0000 0001 2345"
console.log(formatCidForBackend('0000 0000 0001 2345'); // -> "12345"

Last updated