MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / gm-resource.test.js

File gm-resource.test.js

test/injected/gm-resource.test.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { buffer2string, readBlob } from '@/common';
2import { decodeResource } from '@/injected/content/util';
3
4const stringAsBase64 = str => btoa(buffer2string(new TextEncoder().encode(str).buffer));

Callers

nothing calls this directly

Calls 4

decodeResourceFunction · 0.90
stringAsBase64Function · 0.85
testFunction · 0.85
blobAsTextFunction · 0.85

Tested by

no test coverage detected