MCPcopy Index your code
hub / github.com/sql-js/sql.js / tryParseAsDataURI

Function tryParseAsDataURI

js/sql-debug.js:5467–5473  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

5465// If filename is a base64 data URI, parses and returns data (Buffer on node,
5466// Uint8Array otherwise). If filename is not a base64 data URI, returns undefined.
5467function tryParseAsDataURI(filename) {
5468 if (!isDataURI(filename)) {
5469 return;
5470 }
5471
5472 return intArrayFromBase64(filename.slice(dataURIPrefix.length));
5473}
5474
5475
5476

Callers 2

sql-debug.jsFile · 0.70
useRequestFunction · 0.70

Calls 2

isDataURIFunction · 0.70
intArrayFromBase64Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…