{"size": 1246, "ext": "js", "max_stars_repo_path": "misc/module-template.js", "max_stars_repo_name": "rsms/fontk", "max_stars_repo_stars_event_min_datetime": "2019-01-06T21:58:29.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-10T06:22:47.000Z", "max_issues_repo_path": "misc/module-template.js", "max_issues_repo_name": "rsms/fontk", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "misc/module-template.js", "max_forks_repo_name": "rsms/fontk", "max_forks_repo_forks_event_min_datetime": "2020-04-07T00:53:31.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-21T08:18:21.000Z"}
{"max_stars_count": 56, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 23.9615384615, "max_line_length": 63, "alphanum_fraction": 0.5898876404}
"use strict";
(function(define){
  var wasmLoadPromise = fetchWasmModule($MODULE_WASM_URL_STR);

  var Module = {
    // run before and after initializing the module.
    // Can be a function or an array of functions.
    preRun() { console.time('module-init') },
    postRun() { console.timeEnd('module-init') },

    instantiateWasm(info, receiveInstance) {
      wasmLoadPromise
        .then(module => WebAssembly.instantiate(module, info))
        .then(receiveInstance)
      return {} // empty exports until loaded
    },

    print(text) {
      if (arguments.length > 1) {
        text = Array.prototype.slice.call(arguments).join(' ');
      }
      console.log(text);
    },

    printErr(text) {
      if (arguments.length > 1) {
        text = Array.prototype.slice.call(arguments).join(' ');
      }
      console.error(text);
    },

    onRuntimeInitialized() {
      const api = Module['asm']
      define($MODULE_ID_STR, Object.assign({

        memAllocSet(byteArray, length) {
          const offs = api._malloc(length)
          Module.HEAPU8.set(byteArray, offs)
          return offs
        },

      }, api))
    },
  };

  $MODULE_JS

})(
  typeof define == 'function' ? define :
  function(id, m) { window[id] = m }
);
