{"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,"search_vec":"'0.1.8':20 'acmeism':49,74 'acmeism-inspir':48 'altern':41 'basic':59 'cadenc':37 'cli':3 'compil':2,5,27,60,71 'convert':6 'current':57 'declar':54 'differ':39 'earli':25 'early-stag':24 'file':9 'focus':45 'framework':43 'inspir':50 'javascript':69 'json':11,62 'languag':32,52,73 'librari':17 'output':63 'priorit':53 'product':67 'releas':36 'runtim':16 'specif':56 'stabl':35 'stage':26 'suitabl':65 'support':58 'test':31,42,55,72 'testml':1,4,7,15,30,51,70 'tml':8 'use':13,68 'version':19","created_at":"2026-05-01T13:50:07.719315+00:00","updated_at":"2026-05-01T13:50:07.719315+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"testml-compiler","cli_version":null,"type":"library","homepage":"http://testml.org","github":"https://github.com/testml-lang/testml-compiler","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/testml-compiler","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}