How to use the node-opcua-generator.generate function in node-opcua-generator

To help you get started, we’ve selected a few node-opcua-generator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-types / source / generate.ts View on Github external
async function main() {
    try {
        // await build_generated_folder();
        const filename = path.join(__dirname, "../xmlschemas/Opc.Ua.Types.bsd");
        const generatedTypescriptFilename = path.join(__dirname, "_generated_opcua_types.ts");
        await generate(filename, generatedTypescriptFilename);
    } catch (err) {
        console.log(err);
    }
}
main().then().catch();

node-opcua-generator

pure nodejs OPCUA SDK - module generator

MIT
Latest version published 1 month ago

Package Health Score

83 / 100
Full package analysis