Registry / devops / mticp-npm

mticp-npm

JSON →
library1.0.13jsnpmunverified

Node.js wrapper for the mticp transpiler, a command-line tool for converting MTI Skipper Sheet projects (.skip) into IEC 61131-3 compatible formats including Structured Text (ST), Ladder Logic (LD), and XML. Version 1.0.13 is the latest stable release, published in March 2026. It wraps a precompiled C# executable and provides cross-platform support for Node.js >=14. This package is specialized for industrial PLC programming workflows, particularly for Montgomery Technology, Inc. devices, differentiating from general-purpose transpilers by focusing on the proprietary Skipper Sheet format.

npm install mticp-npm
INSTALL
IMPORT
SIG · MTICP-NPM
M
mticp-npm
devopsjavascriptv1.0.13
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

runMticp
✓ const { runMticp } = require('mticp-npm');
✗ import { runMticp } from 'mticp-npm';
Package does not provide ESM exports; CommonJS require is required. No default export.

Shows how to call runMticp with async/await to convert a Skipper Sheet file to IEC Structured Text.

const { runMticp } = require('mticp-npm'); async function convertSkip() { try { const output = await runMticp([ 'action=toiec', 'src=./project.skip', 'dst=./output/' ]); console.log('Conversion successful:', output); } catch (err) { console.error('Conversion failed:', err); } } convertSkip();
mticp --version
Debug
Known issues
gotchaPackage does not support ES modules (ESM). Use require() instead of import.
fix
Use const { runMticp } = require('mticp-npm'); instead of import { runMticp } from 'mticp-npm';
affects: >=1.0
gotchaAll arguments must be provided as strings in the array. Incorrect types or malformed arguments may cause the binary to fail silently.
fix
Ensure each argument is a string in the format 'key=value'.
affects: >=1.0
breakingVersions 1.0.11 and earlier had issues with compiling Skipper Sheets with multiple PLCs. Upgrade to 1.0.12+.
fix
Update to version 1.0.12 or later via npm install mticp-npm@latest.
affects: <1.0.12
gotchaThe wrapper expects the binary to be present in bin/ directory. If binaries are missing, the call will fail.
fix
Reinstall the package to ensure platform-specific binaries are downloaded.
affects: >=1.0
deprecatedThe 'sendxml' action may require network access and specific device configuration; it is not a simple file conversion.
fix
Ensure the device IP is correctly specified in 'dst' for 'sendxml' action.
affects: >=1.0
Errors
Common errors & fixes
Error: Cannot find module 'mticp-npm'
Package not installed or not found in node_modules.
fix
Run 'npm install mticp-npm' in your project directory.
TypeError: runMticp is not a function
Incorrect import style; using ESM import syntax instead of CommonJS require.
fix
Use 'const { runMticp } = require('mticp-npm');' instead of 'import { runMticp } from 'mticp-npm';'
mticp error: Error: spawn mticp ENOENT
The mticp binary is not found in the expected bin/ directory.
fix
Reinstall the package: 'npm install mticp-npm'. If using a custom install, ensure binaries are present.
UnhandledPromiseRejection: Error: Invalid arguments
Arguments array contains malformed or missing key-value pairs.
fix
Check that each argument is a string like 'action=toiec' and required keys (action, src, dst) are provided.
Upgrade
Version history
1.0.13latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources