MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / snakeUpper

Function snakeUpper

tools/build-materials-from-json.ts:64–66  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

62}
63
64function snakeUpper(s: string): string {
65 return s.replace(/[^a-zA-Z0-9]+/g, '_').toUpperCase();
66}
67
68function validate(name: string, desc: unknown): MaterialJson {
69 if (typeof desc !== 'object' || desc === null) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected