MCPcopy
hub / github.com/streetwriters/notesnook / trimPadding

Function trimPadding

packages/sodium/src/node.ts:457–462  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

455}
456
457function trimPadding(str: string): string {
458 while (str.length && str[str.length - 1] === "=") {
459 str = str.slice(0, -1);
460 }
461 return str;
462}
463
464export class Sodium implements ISodium {
465 async initialize() {}

Callers 1

to_base64Function · 0.85

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected