MCPcopy
hub / github.com/ionic-team/capacitor / fixName

Function fixName

cli/src/plugin.ts:108–116  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

106}
107
108export function fixName(name: string): string {
109 name = name
110 .replace(/\//g, '_')
111 .replace(/-/g, '_')
112 .replace(/@/g, '')
113 .replace(/_\w/g, (m) => m[1].toUpperCase());
114
115 return name.charAt(0).toUpperCase() + name.slice(1);
116}
117
118export function printPlugins(
119 plugins: Plugin[],

Callers 1

resolvePluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected