{"_id":"@beauty-diagram/cli","_rev":"14-bb78536d4d42b401d4fd274ad9d7c767","name":"@beauty-diagram/cli","dist-tags":{"latest":"0.5.4"},"versions":{"0.1.0":{"name":"@beauty-diagram/cli","version":"0.1.0","_id":"@beauty-diagram/cli@0.1.0","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"5bf4caf2c6eebc6d8ab13a724ba127af1e69a33e","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.1.0.tgz","fileCount":13,"integrity":"sha512-pqnr30oTj/LgLjmsMwVGbTsNYyCFtjbKGeJd4TWaJvyPGpu7MY98XWJsCnWqEG9PncfKhG6h1ayBCYc2lkFsaA==","signatures":[{"sig":"MEYCIQD9ATz7w3Tu4+QwdeW7iBS5wBm6vn6MKgwQ/8DGsVGw4wIhAIOxhVTcQ7RtsXhs6vktwL1gw0otWPy4JBV51xycYVCJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27465},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"2a3436f48ec4866022f76a9a73dcd1ba5cdb47c1","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.0_1777226102551_0.4729327293906078","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@beauty-diagram/cli","version":"0.1.1","_id":"@beauty-diagram/cli@0.1.1","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"e0ccfc339e17cd25e76a027b18e2792d657a97d7","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.1.1.tgz","fileCount":13,"integrity":"sha512-Fm41IFwq0KdNhqSLW7dlys6+YruK18wwXqD4PcpKrGLVNnhpXiwCt+zZIsYj+q2rDwk8SxMzQzW+8m3aGPU9lg==","signatures":[{"sig":"MEUCIQCt161V1HzZE3PDZAIIcjCP0m7ZQYeQST68BSYe6tcwfgIgSqid3bNNczmnFoLQmlbHSSJ9+ciUkDPk+iTSsc8k4PU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27760},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"ffdfab08ffed22dabf13b2cba4b97f1d4f549847","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.1_1777231359843_0.27752274249169084","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@beauty-diagram/cli","version":"0.1.2","_id":"@beauty-diagram/cli@0.1.2","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"e3544aa67eabf250c8ae6a8b7a5e13755bcc4066","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.1.2.tgz","fileCount":13,"integrity":"sha512-n+6FBn6Tb2Fd1rBv6pXbN+pwHYwHycBwEgmrd+jyi/XMHMV9FO0GnRI4Y6AZjQTgMZLz/IhQ8gAHz8XeKIKSvw==","signatures":[{"sig":"MEUCIQDbFLsuM5TsFmRrk+NxUi+xolFLIyMruoC4vIBATK38hwIgNraezoEpMV0WgEMSuYXXwkQMC2NiiFmffprJ5sHWwGg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28215},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"3a4b71bb1b6558e911fff0c52c3b9335394f3040","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.2_1777261266167_0.5722025989763597","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@beauty-diagram/cli","version":"0.1.3","_id":"@beauty-diagram/cli@0.1.3","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"dcad30872a0aa10475394d3b07529c049e566404","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.1.3.tgz","fileCount":13,"integrity":"sha512-il0WSJx6xn4KviVSsi2UAXSeCbUXw5TohKkMyhm10PYYtwxq56IAXNigm9m0nY0LTuhIveHYzTzK5pl9o8qdWw==","signatures":[{"sig":"MEQCIG0WlalnMY4l/KqoO5YkqNv9j2tUvtvsZVA7xdtrCB8dAiBVVtrUsHQ5FHPVFYnf1anEpg+DZymKSY9NCXBDV0aVgw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":28313},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"cc9072cb823ace5a5b4098de7324af2864065176","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.3_1777456108711_0.8901777717633099","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@beauty-diagram/cli","version":"0.1.4","_id":"@beauty-diagram/cli@0.1.4","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"7ba885d0d9b45b5648109462b0e9f1a7cb6ef094","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.1.4.tgz","fileCount":14,"integrity":"sha512-NOjIH1jDtt6F5YwGa7y1Swo3xLHuthMFi2zunNh9BEUh2Ez2F4YNoEOGcYBYocskNh8f4l74NxPzwvl8/7SdZA==","signatures":[{"sig":"MEUCIQC20AvNibLhxE+XWvx26DukLVvClg3YFvbbIltCKu82hwIgYCuQMfwA/rZu6rHMd2XXD16B2p+YFXC5sNSdX4v2IxI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":32702},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"ef1cd64bd88064c492b1161d9498069baae139ce","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.1.4_1777530813166_0.6961709774870228","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@beauty-diagram/cli","version":"0.2.0","_id":"@beauty-diagram/cli@0.2.0","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"5e7db0ce426392eb3cf586cfaca199c6823d5a87","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.2.0.tgz","fileCount":20,"integrity":"sha512-lg4YyURJWcN3jMnviC6PhV6NRFKVAA+Tdz2LgzBOhfPsK1XvKYy2w0lTcncVqkN8IUutroG4dtljL6g66vadJg==","signatures":[{"sig":"MEYCIQCOvifHqjVK6u4m6dNoZK9lpm6r6a8KQ+aNk9HGAPhpRAIhAO2/Te0p9J1eyHXGIrXTtoHBZP0cgTsq/cqCzOw+Ns2v","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65279},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"8682183993fd8211234efa5fbab9a42f361534a7","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.2.0_1777886730661_0.5455071695859111","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@beauty-diagram/cli","version":"0.2.1","_id":"@beauty-diagram/cli@0.2.1","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"66e9bdd59b571050c77aeb7ea68041eaebe4a5d3","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.2.1.tgz","fileCount":20,"integrity":"sha512-LSAyWvg1UwAn4KFAC5z5tCmBB0sUk+oyPN27C3Ff6Yc2RZCpVuWEbJ0V15SWarFTkS3pr/x2Oy+qNcyobw+RPA==","signatures":[{"sig":"MEUCIQCiJ/uS0mDHQvt14BmHfT7Izb2KDii/ByEWGAdQ0k/wvAIgL2d4Mk6i8xl1eGONnVMh9LChf9Vs0l3NB0uCFzMUPHI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65909},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"6c972788d8fb63e84a83da05d4ad22aa5c88e634","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.2.1_1777909963558_0.3234603640232019","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@beauty-diagram/cli","version":"0.3.0","_id":"@beauty-diagram/cli@0.3.0","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"c1b9ab665ddc78db4fa11facb00c1c62f6313b02","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.3.0.tgz","fileCount":21,"integrity":"sha512-ftDS9nlq2c1YM8lLZRqQrmY4lkcV+35Azgn66WluA0WBo03eJtyKPQ83eWaD1fptzOjw7HTgbBM9IZmrpL09LQ==","signatures":[{"sig":"MEQCIAuv8EaaJd6U06sT54Ft5V8Nuf/SSBJNnn48OCjc8fNNAiAxbuq/6IR7N6l6O+pGVa5tWQ++dt4OtETECAbCJpCxmA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":81143},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"90bdad1442c42ffa6e24de0e108f4e347c1630de","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.3.0_1777963146233_0.08352676568535533","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@beauty-diagram/cli","version":"0.4.0","license":"Apache-2.0","_id":"@beauty-diagram/cli@0.4.0","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"e253ab69544ea910869b9256a03a1171c722191c","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.4.0.tgz","fileCount":22,"integrity":"sha512-Vl2UhnU7g+PWmKCEABGNPCt16+hS8M43HkJreOHsXX4GkYpql6zo+LJ7PZBwFSZZU9b4elglvUzW+dgBrXKSGw==","signatures":[{"sig":"MEYCIQDZNpEBWTsXJa9uq6Jf5qdl8PAIUASue5I/NjC/ZTYNOQIhAJyk8FhOPj9kxeSUBX1W2sN1Nx53AkBLxRhn4544jZnh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94504},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"d8552fd975b6f199a5c7785fced94a3666c036e3","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.4.0_1779170029944_0.14786664619965517","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@beauty-diagram/cli","version":"0.5.0","license":"Apache-2.0","_id":"@beauty-diagram/cli@0.5.0","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"67243a1352c96b387e66ed8fb466777e511b64f4","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.5.0.tgz","fileCount":24,"integrity":"sha512-n0CUTIsAGXeIPGGnwBsUuvQfXqL8w6Ao2N+uk3PyhCg0ROhdfi4noJwLeaXDrQ5MLZSjkROeH6XsB/GOZBLnWA==","signatures":[{"sig":"MEYCIQCQgNwBVocUeuGEp0yntJApqPf4kON4ZmdpfCAuCLPGDQIhAP7rArcN7kAOOfoQFUwtxkpKo1W5/6mN78Ixcwoekt3d","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":116458},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"6610fcfaae20f0d30fcbd2978f81ab6fa512bd6c","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.5.0_1779469197833_0.33537811110028093","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@beauty-diagram/cli","version":"0.5.1","license":"Apache-2.0","_id":"@beauty-diagram/cli@0.5.1","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"139fec90e2e74b9813b532e7d070d65567191be5","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.5.1.tgz","fileCount":24,"integrity":"sha512-2vBy0h0PYCCBeveavAhgYXGXbu/jFlRwdd3eKVBZjALlxla+vVkx2qY4izVZvDlknZ5Hkvjs212wXHFGzrYiLQ==","signatures":[{"sig":"MEYCIQCY4DDjcTpr2QYjvIVlfTAjB9WCgrachOhrBR8f/TiQRQIhAP4C6nZq+kBQujWC50C7d6/oKTuPzDIQJUcWhREWT1mN","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118497},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"797c692681ddaa421a53829fadc2a22e5add940a","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.5.1_1781368756092_0.02979210505636032","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@beauty-diagram/cli","version":"0.5.2","license":"Apache-2.0","_id":"@beauty-diagram/cli@0.5.2","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"bin":{"bd":"dist/index.js"},"dist":{"shasum":"b9e4e86deb7a481c2239e333618a418d2591186f","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.5.2.tgz","fileCount":24,"integrity":"sha512-U3JtHsk9E8cjvwwOu2e18Y4050G+l+hJb5CnEl85an3Ab4q8D95bJKXAqp6zB1bqo3N3fWhKjeSF3/hkMQcGtA==","signatures":[{"sig":"MEQCIBqnAbBRt6YjQeI80ZgeW6GhaxXLdJ6mF8p5UllqmDf0AiBn9BA94qPN+ZYheO2ci5iu+Kda8gYf6YSblFBZlPvdww==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":118555},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"9eb3c47e1e4fbfcb43882742b18115b6c044ead4","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.5.2_1781550677258_0.4675746939159422","host":"s3://npm-registry-packages-npm-production"}},"0.5.3":{"name":"@beauty-diagram/cli","version":"0.5.3","keywords":["mermaid","plantuml","diagram","diagrams","diagram-as-code","mermaid-cli","mermaid-to-svg","mermaid-to-png","diagram-beautifier","flowchart","sequence-diagram","svg","png","drawio","cli"],"license":"Apache-2.0","_id":"@beauty-diagram/cli@0.5.3","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"homepage":"https://www.beauty-diagram.com","bugs":{"url":"https://github.com/beauty-diagram/beauty-diagram-cli/issues"},"bin":{"bd":"dist/index.js"},"dist":{"shasum":"4f572f90679290497982b133e958a92a07e3fcbb","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.5.3.tgz","fileCount":24,"integrity":"sha512-7arGs9QxgLlXq7PwelR+uz068IeTzMrRxCMQZY9XC087fsk/qUgpOM75FnV8LUwkRCiI+OsQmbITl4itTMdo1g==","signatures":[{"sig":"MEUCIB7GUHxhd+rr5lH9f8jxJxqsMhdvBvvDYdOkkg1WD+ZuAiEAsUiST0F0K1T7GBLtDzMjOGid31ph2GRQsGlvRmkd0SQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":119091},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"d9175440b27438caa60ed86cc0a40a649014d09f","private":false,"scripts":{"test":"vitest run","build":"tsc -p tsconfig.json","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"repository":{"url":"git+https://github.com/beauty-diagram/beauty-diagram-cli.git","type":"git"},"_npmVersion":"11.13.0","description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","directories":{},"_nodeVersion":"24.5.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^4.1.5","typescript":"^6.0.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/cli_0.5.3_1781630189319_0.9114906547522148","host":"s3://npm-registry-packages-npm-production"}},"0.5.4":{"name":"@beauty-diagram/cli","version":"0.5.4","private":false,"description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","keywords":["mermaid","plantuml","diagram","diagrams","diagram-as-code","mermaid-cli","mermaid-to-svg","mermaid-to-png","diagram-beautifier","flowchart","sequence-diagram","svg","png","drawio","cli"],"homepage":"https://www.beauty-diagram.com","repository":{"type":"git","url":"git+https://github.com/beauty-diagram/beauty-diagram-cli.git"},"bugs":{"url":"https://github.com/beauty-diagram/beauty-diagram-cli/issues"},"license":"Apache-2.0","bin":{"bd":"dist/index.js"},"main":"dist/index.js","type":"module","scripts":{"build":"tsc -p tsconfig.json","test":"vitest run","preversion":"npm test && npm run build","version":"node scripts/update-changelog.mjs && git add package.json CHANGELOG.md","postversion":"node scripts/postversion-hint.mjs","prepublishOnly":"rm -rf dist && tsc -p tsconfig.json"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"devDependencies":{"@types/node":"^25.6.0","typescript":"^6.0.3","vitest":"^4.1.5"},"gitHead":"7465468ba8ab04fafcde73cb881c9c3b8abc9e5b","_id":"@beauty-diagram/cli@0.5.4","_nodeVersion":"24.5.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-p2X0uTjotelh2t9U7/pBpZSGjLIqs3fmpomnLSPk7V0YG2TUBrlwmBQ9gT0W5sdQJ0szjQ9HoGaXr7e3qhc7ZA==","shasum":"74c210c7d7c7eae7c5066d43247a93e732af2d2b","tarball":"https://registry.npmjs.org/@beauty-diagram/cli/-/cli-0.5.4.tgz","fileCount":25,"unpackedSize":121539,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBzP8MJGUtU/fpx+dOlIgXWpAccAWciPv5e+tlUo9PDvAiAaWHplP1KIF7enBc8/mk9nXVI1kSjtd1HUpmIYpGBsOw=="}]},"_npmUser":{"name":"beauty-diagram","email":"service@beauty-diagram.com"},"directories":{},"maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cli_0.5.4_1785834738383_0.7133098250202474"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-26T17:55:02.428Z","modified":"2026-08-04T09:12:18.657Z","0.1.0":"2026-04-26T17:55:02.694Z","0.1.1":"2026-04-26T19:22:39.981Z","0.1.2":"2026-04-27T03:41:06.329Z","0.1.3":"2026-04-29T09:48:28.840Z","0.1.4":"2026-04-30T06:33:33.359Z","0.2.0":"2026-05-04T09:25:30.789Z","0.2.1":"2026-05-04T15:52:43.705Z","0.3.0":"2026-05-05T06:39:06.392Z","0.4.0":"2026-05-19T05:53:50.073Z","0.5.0":"2026-05-22T16:59:58.092Z","0.5.1":"2026-06-13T16:39:16.264Z","0.5.2":"2026-06-15T19:11:17.400Z","0.5.3":"2026-06-16T17:16:29.480Z","0.5.4":"2026-08-04T09:12:18.523Z"},"bugs":{"url":"https://github.com/beauty-diagram/beauty-diagram-cli/issues"},"license":"Apache-2.0","homepage":"https://www.beauty-diagram.com","keywords":["mermaid","plantuml","diagram","diagrams","diagram-as-code","mermaid-cli","mermaid-to-svg","mermaid-to-png","diagram-beautifier","flowchart","sequence-diagram","svg","png","drawio","cli"],"repository":{"type":"git","url":"git+https://github.com/beauty-diagram/beauty-diagram-cli.git"},"description":"Beauty Diagram CLI — beautify, export, and share Mermaid / PlantUML diagrams from the command line.","maintainers":[{"name":"beauty-diagram","email":"service@beauty-diagram.com"}],"readme":"# @beauty-diagram/cli\n\nBeauty Diagram command-line interface — `bd`.\n\nRender Mermaid / PlantUML into sleek, modern visuals, share a public link, or run\nAI refinements straight from the terminal. Talks to the public API at\n`https://api.beauty-diagram.com/v1/*` (or any URL you set via `--base-url`).\n\n## Install\n\n```bash\n# Run without installing\nnpx @beauty-diagram/cli beautify flow.mmd --out flow.svg\n\n# Or install globally\nnpm install -g @beauty-diagram/cli\nbd beautify flow.mmd --out flow.svg\n```\n\nThe package has zero runtime dependencies; cold start under `npx` should be\nsub-second.\n\n## Authentication\n\nThree modes, lowest-friction first:\n\n1. **Anonymous demo** — no setup. Watermarked SVG, IP rate limited. Great for\n   the first run or for quick `npx` smoke tests.\n2. **`BEAUTY_DIAGRAM_API_KEY` env** — for CI / scripts. The CLI never logs the\n   raw key.\n3. **`bd auth login`** — saves a key to your OS config dir\n   (`~/.config/beauty-diagram/config.json` or the Windows equivalent).\n\n```bash\n# Save a key\nbd auth login                     # paste when prompted\necho bd_live_... | bd auth login  # or pipe it in\n\n# Or pass per-invocation\nbd beautify flow.mmd --api-key bd_live_... --out flow.svg\n\n# Inspect\nbd auth status\n```\n\nCreate keys at [`/account/api-keys`](https://www.beauty-diagram.com/account/api-keys).\nPick the smallest scope set that covers your workflow.\n\n## Commands\n\n```bash\nbd themes\nbd beautify   flow.mmd [--theme modern] [--out flow.svg]\nbd export     flow.mmd [--theme modern] [--format svg|png] [--quality standard|high|max] [--out flow.svg]\nbd batch      <paths...>     [--out-dir DIR] [--format svg|png] [--concurrency N] [--stop-on-error]\nbd extract    <markdown...>  [--theme T] [--share | --assets-dir DIR] [--re-mint] [--concurrency N] [--dry-run] [--clean]\nbd share      flow.mmd [--title \"Release flow\"] [--theme modern]\nbd embed-url  flow.mmd [--theme modern] [--share]\nbd ai generate \"<prompt>\" [--hint flowchart|sequence|...] [--out flow.mmd]\nbd usage\n```\n\n`bd export --format png --quality max` requests a max-tier (4×) PNG. Quality\nmaps to internal scale (`standard` = 1×, `high` = 2×, `max` = 4×) and the\nserver caps the effective tier by plan (anonymous / free = standard, pro =\nhigh, premium = max); when clamping happens the CLI prints a one-line note\npointing at the upgrade path. CJK labels in PNGs render as tofu boxes today\n— use `--format svg` for diagrams with Chinese / Japanese / Korean text.\n\n### File handling\n\n- Pass `-` or omit `<file>` to read source from stdin.\n- Pass `--out -` to write to stdout (binary bytes for PNG; safe to redirect to a file).\n- File-extension hints set the source format: `.mmd`/`.mermaid` → mermaid, `.puml`/`.plantuml`/`.pu` → plantuml. Override with `--source-format mermaid|plantuml`.\n\n### Source-level directives\n\nIf your file's first lines are `bd:` directives, the CLI honors them (and strips them from the source before rendering):\n\n```bash\n$ cat flow.mmd\n%% bd:theme=classic\n%% bd:bg=transparent\nflowchart LR\n  A --> B\n\n$ bd beautify flow.mmd\n# renders with theme=classic and bg=transparent\n```\n\nCLI flags override directives:\n\n```bash\n$ bd beautify flow.mmd --theme=modern\n# renders with theme=modern (overrides %% bd:theme=classic in source)\n```\n\nSupported keys: `theme`, `bg`, `exclude`. For PlantUML, use `' bd:KEY=VALUE` instead. `%% bd:exclude` (no value needed) opts the block out of Beauty Diagram entirely — `bd extract` skips it (no embed URL, no sidecar asset).\n\nDirective syntax rules:\n- One directive per line, at the very start of the file.\n- Blank lines between directives are tolerated.\n- The first non-directive, non-blank line ends the directive block.\n- Unknown keys are silently ignored (forward-compatible).\n- `bg` accepts `theme` (default), `white`, `dark` (canvas ink is hue-lifted so edges and labels stay legible), or `transparent`. Unknown values fall back to `theme`.\n\n### Agent-friendly examples\n\n```bash\n# Pipe agent-generated mermaid into the CLI without an intermediate file\necho \"$mmd_from_agent\" | bd beautify --theme modern --out diagrams/release.svg\n\n# Share, then capture the URL for the agent to paste back to the user\nurl=$(bd share flow.mmd --title \"Release flow\")\necho \"Diagram: $url\"\n```\n\n## Batch render\n\nRender many diagrams in parallel — one `/v1/export` request per file.\n\n```bash\nbd batch ./diagrams                          # recurse a directory\nbd batch ./diagrams --out-dir ./svg          # write SVGs to ./svg/, preserving relative paths\nbd batch a.mmd b.puml                        # explicit files\nbd batch \"diagrams/*.mmd\" --format png       # single-segment glob (quote it)\nbd batch ./d --concurrency 8 --theme neon\nbd batch ./d --stop-on-error                 # abort on first failure (default: continue)\n```\n\n- Recurses directories looking for `.mmd`, `.puml`, `.plantuml`, `.pu`. Other files are ignored unless listed explicitly.\n- Default concurrency is `4`. Each file becomes one independent request, so quota / rate limits behave the same as `bd export`.\n- Default failure mode is **continue-on-error**: a per-file `✗` line is printed, the rest of the batch finishes, and the command exits `1` if any file failed.\n- `--out-dir` must resolve inside the current working directory — paths that escape (e.g. `--out-dir ../../tmp`) are rejected for safety.\n\n## Embed diagrams in Markdown\n\n`bd extract` finds every ```` ```mermaid ```` / ```` ```plantuml ```` fenced\nblock in your Markdown files and injects an image reference just below each\nblock. Re-running is **idempotent** — unchanged blocks are skipped.\n\n### Default: inline embed URLs (no API calls, no files)\n\n```bash\nbd extract README.md\nbd extract docs/*.md --theme atlas\nbd extract README.md --dry-run        # preview without writing\n```\n\nThe default mode produces `<img>` URLs pointing at the anonymous\n`/v1/beautify.svg` endpoint. No API calls happen during `bd extract` itself —\nthe URL encodes the source as a base64url query parameter and the browser\n(or GitHub's image proxy) fetches the diagram on demand.\n\nThe injected block looks like:\n\n```\n<!-- bd:inline-img hash=a3f9c2b1 -->\n![Diagram 1](https://api.beauty-diagram.com/v1/beautify.svg?source=<base64>&theme=...)\n<!-- /bd:inline-img -->\n```\n\nWatermark policy: inline embed URLs always carry a \"Powered by Beauty Diagram\"\nwatermark regardless of plan or auth status — they use the anonymous endpoint.\n\nSize cap: blocks whose UTF-8 source exceeds **10 KB** are skipped in inline\nmode (URL length limits). `bd extract` prints a per-block warning and exits\nwith code 1 for partial failures. Use `--share` or `--assets-dir` for\nlarge blocks (share mode POSTs the source, no URL-length issue).\n\n### Share mode: watermark-free inline embeds (Pro/Premium)\n\nPass `--share` to mint a per-source share token for every fence and embed\n`/v1/share/<token>.svg` URLs instead of anonymous `/v1/beautify.svg`.\nOwner-attributed renders are watermark-free for Pro and Premium plans.\n\n```bash\nbd extract docs/*.md --share\nbd extract README.md --share --re-mint    # force fresh tokens\n```\n\nRequires an API key (`bd auth login` first). Each unique fence source\nconsumes one share quota slot the first time it's seen; subsequent\nruns of the same source pull from a local cache (`~/.cache/bd-cli/\nshare-tokens.json`, per-owner namespace) and burn zero additional quota.\n\nIdentical fences in the same file are deduplicated — a doc with three\ncopies of the same `graph TD\\nA-->B` block consumes one quota slot,\nnot three.\n\nThe injected block looks like:\n\n```\n<!-- bd:inline-img hash=a3f9c2b1 share=true -->\n![Diagram 1](https://api.beauty-diagram.com/v1/share/Xs4PqM2NkL8t.svg)\n<!-- /bd:inline-img -->\n```\n\nThe `share=true` attribute lets re-runs distinguish a share-mode marker\nfrom an anonymous one. Re-running `bd extract --share` on a file that\nalready has `share=true` markers and unchanged sources is a no-op\n(zero POSTs, zero diff). Re-running without `--share` on a file with\nshare-mode markers KEEPS the share markers in place — anonymous mode\nnever downgrades them.\n\n**Re-minting**: by default, `bd extract --share` keeps an existing\n`/v1/share/<token>.svg` URL as long as the source hasn't changed —\neven if the token was minted by another collaborator. This avoids\nchain-of-rewrites in multi-contributor PRs. Pass `--re-mint` if you\nwant every fence to go through a fresh `POST /v1/share` with your own\nAPI key (consumes one quota slot per unique source).\n\n`--share` and `--assets-dir` are mutually exclusive: `--share` does\ninline embeds with no local files; `--assets-dir` writes local SVG\nfiles (and is already watermark-free for Pro/Premium via `/v1/export`).\n\n### Sidecar mode: local SVG files (Pro/Premium get watermark-free output)\n\nPass `--assets-dir` to opt into the previous sidecar behaviour. Each block\nis rendered via `/v1/export`, written to a local SVG file, and an image\nreference is injected:\n\n```bash\nbd extract docs/*.md --assets-dir ./img --concurrency 4\nbd extract README.md --assets-dir ./img --clean   # also delete orphaned SVGs\n```\n\nThe injected block looks like:\n\n```\n<!-- bd:img hash=a3f9c2b1 -->\n![Diagram 1](./img/readme-a3f9c2b1.svg)\n<!-- /bd:img -->\n```\n\n- `--assets-dir` must resolve inside either the Markdown's directory or the\n  cwd — paths that escape (e.g. `../../etc`) are rejected.\n- If a single block fails to render, SVGs already written for that document in\n  the same run are cleaned up so the Markdown is never left half-injected.\n- `/v1/export` quota applies (anonymous ~5/day, free ~30-50/month, pro/premium\n  higher). Use inline mode (the default) to avoid quota consumption.\n- `--concurrency` only applies in sidecar mode (inline needs no concurrency\n  control — it makes no API calls).\n\n## Embed URLs\n\n`bd embed-url` prints the embed URL(s) for a local diagram source without uploading or saving it.\n\n```bash\n# Print both the inline (anonymous, watermarked) URL and share-mode instructions\nbd embed-url ./architecture.mmd\nbd embed-url ./architecture.mmd --theme atlas\n\n# Save first as a share, then print only the clean share embed URL\nbd embed-url ./architecture.mmd --share\n```\n\nDefault output (no `--share`) shows two things:\n\n```\nInline embed (anonymous, watermarked):\n  https://api.beauty-diagram.com/v1/beautify.svg?source=<base64>&theme=atlas\n\nSaved share embed (clean output if you have Pro):\n  Run `bd share <file>` first, then use:\n  https://api.beauty-diagram.com/v1/share/<id>.svg\n```\n\nWith `--share` the command runs `bd share` internally and prints only the share URL, so the output is pipe-friendly:\n\n```bash\nurl=$(bd embed-url ./architecture.mmd --share)\necho \"![Architecture](${url})\" >> README.md\n```\n\nThe inline URL is always watermarked — it carries \"Powered by Beauty Diagram\" in the bottom-right corner regardless of plan or auth status. To get clean embed output, save the diagram with `bd share` (or `--share`) and use the resulting `/v1/share/<id>.svg` URL; watermark is removed for Pro and Premium plan owners.\n\n## Configuration precedence\n\nFor each request, the CLI resolves the API key in this order:\n\n1. `--api-key` flag\n2. `BEAUTY_DIAGRAM_API_KEY` env var\n3. Saved config (set via `bd auth login`)\n4. None — falls through to anonymous demo\n\nThe base URL follows the same precedence with `--base-url` /\n`BEAUTY_DIAGRAM_API_BASE_URL` / saved / `https://api.beauty-diagram.com`.\n\n## Errors\n\nThe CLI exits with `1` on any non-2xx response and prints the API error code\nplus message to stderr. Common codes:\n\n| Code | Meaning |\n|---|---|\n| `not_authenticated` | No key, no session — sign in or use `bd auth login`. |\n| `scope_missing` | Key lacks the scope the endpoint needs (e.g. `ai:write` for `bd ai generate`). Recreate the key with the missing scope. |\n| `plan_not_allowed` | Plan does not include this capability. |\n| `parse_failed` | Source did not parse as the declared format. |\n| `quota_exhausted` | Plan limit reached for this period. |\n| `rate_limited` | Anonymous IP bucket is full — wait or sign in. |\n| `output_too_large` | Rasterized PNG exceeds the 8192 px ceiling. Lower `--quality` or simplify the diagram. |\n| `not_yet_supported` | Reserved for endpoints that ship in later phases. |\n\n## Privacy\n\nPer-request privacy follows the API:\n\n- Source is never persisted unless you explicitly call `bd share`.\n- API logs store hashes / lengths / format — never the raw source or\n  instruction text.\n\n## Development\n\n```bash\ncd beauty-diagram-cli\nnpm install                          # one-time\nnpm run build                        # tsc → dist/\nnode dist/index.js help\n```\n\nTests:\n\n```bash\nnpm test\n```\n","readmeFilename":"README.md"}