MCPcopy Create free account
hub / github.com/SethGammon/Citadel / kv

Function kv

scripts/test-secrets-lens.js:135–137  ·  view source on GitHub ↗
(nameParts, value, decl = 'const')

Source from the content-addressed store, hash-verified

133// parts and the value via JSON.stringify, so the name-equals-quoted-value
134// shape that secret scanners match never appears in this file's source.
135function kv(nameParts, value, decl = 'const') {
136 return decl + ' ' + nameParts.join('') + ' = ' + JSON.stringify(value) + ';';
137}
138
139function main() {
140 console.log('\nCitadel Secrets Lens Test Suite\n' + '='.repeat(40));

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected