MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / encode

Method encode

packages/core/src/utils/Cursor.ts:190–192  ·  view source on GitHub ↗
(value: unknown[])

Source from the content-addressed store, hash-verified

188 }
189
190 static encode(value: unknown[]): string {
191 return Buffer.from(JSON.stringify(value)).toString('base64url');
192 }
193
194 static decode(value: string): unknown[] {
195 return JSON.parse(Buffer.from(value, 'base64url').toString('utf8')).map((value: unknown) => {

Callers 2

fromMethod · 0.80
forMethod · 0.80

Calls 2

fromMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected