MCPcopy
hub / github.com/simov/grant / sign

Function sign

test/response.js:5–8  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

3var response = require('../lib/response')
4
5var sign = (...args) => args.map((arg, index) => index < 2
6 ? Buffer.from(JSON.stringify(arg)).toString('base64')
7 .replace(/=/g, '').replace(/\+/g, '-').replace(/\//g, '_')
8 : arg).join('.')
9
10
11describe('response', () => {

Callers 1

response.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…