{"id":26467,"library":"testml-compiler","title":"TestML Compiler CLI","description":"TestML Compiler converts TestML (.tml) files to JSON for use with TestML runtime libraries. At version 0.1.8, this is an early-stage compiler for the TestML testing language, with no stable release cadence. It differs from alternative testing frameworks by focusing on the Acmeism-inspired TestML language, prioritizing declarative test specifications. Currently supports basic compilation to JSON output. Not suitable for production use.","status":"active","version":"0.1.8","language":"javascript","source_language":"en","source_url":"https://github.com/testml-lang/testml-compiler","tags":["javascript","testml","compiler","testing","language","acmeism"],"install":[{"cmd":"npm install testml-compiler","lang":"bash","label":"npm"},{"cmd":"yarn add testml-compiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add testml-compiler","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package is CommonJS only; no ESM support.","wrong":"import compile from 'testml-compiler'","symbol":"default","correct":"const compile = require('testml-compiler')"},{"note":"Named export available, but default export is preferred.","wrong":null,"symbol":"compile","correct":"const { compile } = require('testml-compiler')"}],"quickstart":{"code":"const compile = require('testml-compiler');\nconst fs = require('fs');\nconst tml = fs.readFileSync('test.tml', 'utf8');\nconst result = compile(tml);\nfs.writeFileSync('test.tml.json', JSON.stringify(result, null, 2));","lang":"javascript","description":"Compiles a TestML file to JSON using the default export."},"warnings":[{"fix":"Wrap compile call in try-catch block.","message":"No error handling; compile throws on invalid input","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Validate the resulting JSON before writing to file.","message":"Output is not validated; may produce malformed JSON for edge cases","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install testml-compiler --save-dev` (or `npm install -g testml-compiler` for CLI).","cause":"Missing local install","error":"Cannot find module 'testml-compiler'"},{"fix":"Use `const compile = require('testml-compiler')` (default) or `const { compile } = require('testml-compiler')` (named).","cause":"Incorrect import (e.g., named import on default export)","error":"TypeError: compile is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}