IDomatic automatically adds meaningful id
attributes to your HTML/JSX for better testability, maintainability, and team sanity.
npm init @idomatic
Before:
function Example() {return (<div><p>Click the button below</p><button>Click me</button></div>);}
After:
function Example() {return (<div id="idomatic-1b9d6c88-32f1-11ec-8d3d-0242ac130003"><p id="idomatic-1b9d6fa4-32f1-11ec-8d3d-0242ac130003">Click the button below</p><button id="idomatic-1b9d70da-32f1-11ec-8d3d-0242ac130003">Click me</button></div>);}
Speed up your test automation and maintain clean markup with zero effort.
From install to improved markup — here’s how simple it is.
npm init @idomatic
Choose your framework: React/JSX or HTML/Vue/Angular. A config file is generated.
{"attributeName": "id","prefix": "auto-id-","excludeTags": ["html", "head", "script"],"includeExtensions": ["html", "vue"],"excludeFiles": []}
Adjust the rules in .idomatic.config.json
to match your project structure.
npx idomatic scan
Run a full scan or preview which files will be modified using the --dry
flag.
IDomatic is built for the modern frontend ecosystem — with more support on the way.