Developer's Guide: No Hardcoded Versions
Consumer application code should never import specific versions directly:
// Recommended: loads src's highest version automatically
import { DataList } from "json-to-dom-datalist";
// Or when copied via CLI:
import { DataList } from "./json-to-dom-datalist/index.js";
Instant Scaffolding via NPX CLI
The CLI discovers and copies the latest engine version without requiring manual configuration:
# Automatically picks the highest version (v2)
npx json-to-dom-datalist
# Or optionally specify destination folder and version target
npx json-to-dom-datalist ./src/components/datalist --version-target=v2