MCPcopy Index your code
hub / github.com/OpenSignLabs/OpenSign / fileasbytes

Function fileasbytes

apps/OpenSign/src/constant/Utils.js:172–176  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

170 "December"
171];
172export const fileasbytes = async (filepath) => {
173 const response = await fetch(filepath); // Adjust the path accordingly
174 const arrayBuffer = await response.arrayBuffer();
175 return new Uint8Array(arrayBuffer);
176};
177
178export const openInNewTab = (url, target) => {
179 if (target) {

Callers 2

embedDocIdFunction · 0.85
embedWidgetsToDocFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected