@needle-tools/engine
Version:
Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in
15 lines (11 loc) • 450 B
JavaScript
module.exports.getMeta = function() {
const workingDirectory = process.cwd();
const needleConfig = require(workingDirectory + "/needle.config.json");
if (needleConfig.codegenDirectory) {
const metaPath = workingDirectory + "/" + needleConfig.codegenDirectory + "/meta.json";
/**@type {import("../types").needleMeta} */
const meta = require(metaPath);
return meta;
}
return null;
}