Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
const
ID_VERSION =
'v1'
;
2
3
function
encodePart(value) {
4
if
(value === null || value === undefined)
return
''
;
5
return
encodeURIComponent(String(value));
6
}
7
8
function
decodePart(value) {
9
if
(!value)
return
null;
Callers
1
encodeVectorId
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected