> For the complete documentation index, see [llms.txt](https://dormakaba-digital.gitbook.io/reactnative-client/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dormakaba-digital.gitbook.io/reactnative-client/utils/formatters.md).

# formatters

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

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

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