MCPcopy Create free account
hub / github.com/eeue56/elm-static-html / generateNativeModuleString

Function generateNativeModuleString

templates.js:2–11  ·  view source on GitHub ↗
(projectName)

Source from the content-addressed store, hash-verified

1// literally the only reason why this has to be an npm package
2var generateNativeModuleString = function(projectName){
3 var fixedProjectName = projectName.replace(/-/g, '_');
4
5 var nativeString = `
6var _${fixedProjectName}$Native_Jsonify = {
7 stringify: function(thing) { return JSON.stringify(thing); }
8};`;
9
10 return nativeString;
11};
12
13
14var importLines = function(moduleNames){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected