MCPcopy Create free account
hub / github.com/deepnote/vscode-deepnote / format

Function format

src/platform/common/helpers.ts:62–64  ·  view source on GitHub ↗
(value: string, ...args: string[])

Source from the content-addressed store, hash-verified

60 * Tokens such as {0}, {1} will be replaced with corresponding positional arguments.
61 */
62export function format(value: string, ...args: string[]) {
63 return value.replace(/{(\d+)}/g, (match, number) => (args[number] === undefined ? match : args[number]));
64}
65
66export function createPublicAPIProxy<T extends object>(target: T, membersToHide: (keyof T)[]): T {
67 const membersToHideList = membersToHide as (string | symbol)[];

Callers 10

JupyterImporterClass · 0.90
createTemplateFileMethod · 0.90
resetVSCodeMocksFunction · 0.90
computeStartPortMethod · 0.90
logMessageMethod · 0.50
formatMethod · 0.50
formatMessageFunction · 0.50

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected