MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / encodePart

Function encodePart

vector/idCodec.js:3–6  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1const ID_VERSION = 'v1';
2
3function encodePart(value) {
4 if (value === null || value === undefined) return '';
5 return encodeURIComponent(String(value));
6}
7
8function decodePart(value) {
9 if (!value) return null;

Callers 1

encodeVectorIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected