MCPcopy Create free account
hub / github.com/callstackincubator/polygen / getModuleNameFor

Function getModuleNameFor

packages/codegen/src/wasm2c/wasm2c.ts:85–91  ·  view source on GitHub ↗
(
  inputFile: string,
  options?: Wasm2cGenerateOptions
)

Source from the content-addressed store, hash-verified

83}
84
85function getModuleNameFor(
86 inputFile: string,
87 options?: Wasm2cGenerateOptions
88): string {
89 const defaultModuleName = path.basename(inputFile, '.wasm');
90 return options?.moduleName ?? defaultModuleName;
91}
92
93/**
94 * Returns the output files for a given configuration.

Callers 2

getOutputFilesForFunction · 0.85
generateCSourcesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected