{"_id":"graphviz-cli","_rev":"4-0ff8681053c96abdba0a5f402eb34866","name":"graphviz-cli","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.1":{"name":"graphviz-cli","version":"0.0.1","description":"Command-line tool for generating graph images from Graphviz source scripts.","author":{"name":"Ferdinand Prantl","email":"prantlf@gmail.com","url":"http://prantlf.tk/"},"keywords":["requirejs","dependencies","module","tracer","trace","amdjs","amd"],"repository":{"type":"git","url":"git+https://github.com/prantlf/graphviz-cli.git"},"homepage":"https://github.com/prantlf/graphviz-cli#readme","bugs":{"url":"https://github.com/prantlf/graphviz-cli/issues"},"license":"MIT","engines":{"node":">=10"},"bin":{"graphviz":"bin/graphviz.js"},"main":"lib/index.js","types":"lib/index.d.ts","man":["man/graphviz.1"],"scripts":{"build:ts":"tsc test/typings.ts","build":"npm run build:ts","lint:js":"eslint --cache --max-warnings=0 --ignore-pattern=test/typings.js bin lib test","lint:ts":"eslint --cache --max-warnings=0 --cache-location .tslintcache -c .tslintrc.yml --ext=.ts lib test","lint":"npm run lint:js && npm run lint:ts","fix:js":"eslint --cache --max-warnings=0 --fix --ignore-pattern=test/typings.js bin lib test","fix:ts":"eslint --cache --max-warnings=0 --cache-location .tslintcache -c .tslintrc.yml --ext=.ts --fix lib test","fix":"npm run fix:js && npm run fix:ts","test:ts":"node test/typings","test:cli":"nyc --silent ./bin/graphviz.js -? && nyc --silent --no-clean ./bin/graphviz.js -V && mkdir -p test/actual && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js > test/actual/hello.dot.dot && nyc --silent --no-clean ./bin/graphviz.js -Tsvg -otest/actual/hello.dot.svg test/hello.dot && nyc --silent --no-clean cp test/hello.dot test/actual/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -Tjson -O test/actual/hello.dot && rm test/actual/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -v -Tjson0 -otest/actual/hello.dot.json0 test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -v -Tplain test/hello.dot > test/actual/hello.dot.plain && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js -v -Tplain-ext -otest/actual/hello.dot.plain-ext && nyc --silent --no-clean ./bin/graphviz.js -Kneato -Tps -otest/actual/hello.dot.ps test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -y -Tps2 -otest/actual/hello.dot.ps2 test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -n1 -Tpng -otest/actual/hello.dot.png test/hello.dot && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js -v -Txdot > test/actual/hello.dot.xdot","test:err":"nyc --silent --no-clean ./bin/graphviz.js -Kinvalid || nyc --silent --no-clean ./bin/graphviz.js -v -Tinvalid || nyc --silent --no-clean ./bin/graphviz.js -n2 || nyc --silent --no-clean ./bin/graphviz.js -o || nyc --silent --no-clean ./bin/graphviz.js -K || nyc --silent --no-clean ./bin/graphviz.js -T || nyc --silent --no-clean ./bin/graphviz.js -Ounexpected || nyc --silent --no-clean ./bin/graphviz.js -v -X || true","test:cmp":"nyc --silent --no-clean node test/test","test:cov":"nyc report && nyc check-coverage","test":"npm run test:ts && npm run test:cli && npm run test:err && npm run test:cmp && npm run test:cov","all":"npm run build && npm run lint && npm run test"},"nyc":{"reporter":["lcov","text-summary"],"branches":95,"functions":100,"lines":100,"statements":100},"dependencies":{"@aduh95/viz.js":"3.0.1"},"peerDependencies":{"canvas":"2.6.1"},"devDependencies":{"@types/node":"14.0.13","@typescript-eslint/eslint-plugin":"3.2.0","@typescript-eslint/parser":"3.2.0","canvas":"2.6.1","eslint":"7.2.0","eslint-config-standard":"14.1.1","eslint-config-standard-with-typescript":"18.0.2","eslint-plugin-import":"2.21.2","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"4.2.1","eslint-plugin-standard":"4.0.1","nyc":"15.1.0","test":"0.6.0","typescript":"3.9.5"},"gitHead":"685fd597d68c85b7acafadd54d54b1d11d18a573","_id":"graphviz-cli@0.0.1","_nodeVersion":"12.18.0","_npmVersion":"6.14.5","_npmUser":{"name":"prantlf","email":"prantlf@gmail.com"},"dist":{"integrity":"sha512-OM6VmSQ3/dAeJ4x/6UwK5SVlZxw+/O8jXqr4Ws97CFUzqswzU/ZDpVhjUr74TTpGhdnCx422OtvckBFu+DXZHw==","shasum":"7e4b86216c75d4cfa0c009e29a4523f5dd06a351","tarball":"https://registry.npmjs.org/graphviz-cli/-/graphviz-cli-0.0.1.tgz","fileCount":10,"unpackedSize":20185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5nHlCRA9TVsSAnZWagAAhMIP/1idohr4bA6urjTMcRfA\ngvR33lDd7RHbIFpWERT4E1GlroPiee1FOw27Kk++9k1Powy+yx8L8X9HYY1G\nnGB4Lw3ZFgQkfOVvqVqEfIDl0yWL2EB8BHgK3qXoMFh4hDIyqNh3abte+Ruv\nu6LLxxC9u+lk1SbACa2JuWMHkupJ6PnLekY6z9QB8Jc3ecpT/QGjowupnwkS\n11P0zlDN4HSL+192fuu1jA4zYjFck+mq6wKCDWcjkWvi76ZCa5In5TR9f1Ki\n9ng31p0VT42jWoyaGvgr/HZpAWPh1OeMvIi8BpKKwgX02XLktjZL6qMDQT94\nMGUi2G6WFujcociaF5i0eoXFsUqXGZgGJXJYdC01lwhkVT417IqCt3i5vf4c\nfV51mU5iJJR28Gn6vmzK1FQbRRBZYM1VsB61BE2Zz+c9I4a5z5dkjeLGFVXW\n/OOYvxRYbhZbMvYi3eerw1JCg6aPDpiJsVD45Dt9vNRt8tFiK/4PabeTYbq9\nXfVYRry13E/JbWWGRHP7RnTq0F4ka0PangugOneHGQxRRJOfwluscb4WsaNH\nEge5iQlzRcDqKu0hEVyKlwqNC7b4tbK51p2YqHzxRUxCgJ7d7H0q8Y+TyPOL\ntqxKWvN55fmxhh1hkUAw9GowsJC+LeZ0df9yosOYyKjMzzPOAVkOhl8X3X5L\nGH1C\r\n=BisE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmHbDbYZZr0gQ5VwkbBQby4rEg51cCeONeo/oYgWorkwIgdJzLP+uZOW9+a4tT+54uRxTJkWmtPfZhYNb9dBE/oN4="}]},"maintainers":[{"name":"prantlf","email":"prantlf@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphviz-cli_0.0.1_1592160740507_0.8920216067682623"},"_hasShrinkwrap":false},"1.0.0":{"name":"graphviz-cli","version":"1.0.0","description":"Command-line tool for generating graph images from Graphviz source scripts.","author":{"name":"Ferdinand Prantl","email":"prantlf@gmail.com","url":"http://prantlf.tk/"},"keywords":["graphviz","graph","dot"],"repository":{"type":"git","url":"git+https://github.com/prantlf/graphviz-cli.git"},"homepage":"https://github.com/prantlf/graphviz-cli#readme","bugs":{"url":"https://github.com/prantlf/graphviz-cli/issues"},"license":"MIT","engines":{"node":">=12"},"bin":{"graphviz":"bin/graphviz.js"},"main":"lib/index.js","types":"lib/index.d.ts","man":["man/graphviz.1"],"scripts":{"build:ts":"tsc test/typings.ts","build":"npm run build:ts","lint:js":"eslint --cache --max-warnings=0 --ignore-pattern=test/typings.js bin lib test","lint:ts":"eslint --cache --max-warnings=0 --cache-location .tslintcache -c .tslintrc.yml --ext=.ts lib test","lint":"npm run lint:js && npm run lint:ts","fix:js":"eslint --cache --max-warnings=0 --fix --ignore-pattern=test/typings.js bin lib test","fix:ts":"eslint --cache --max-warnings=0 --cache-location .tslintcache -c .tslintrc.yml --ext=.ts --fix lib test","fix":"npm run fix:js && npm run fix:ts","test:ts":"node test/typings","test:cli":"nyc --silent ./bin/graphviz.js -? && nyc --silent --no-clean ./bin/graphviz.js -V && mkdir -p test/actual && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js > test/actual/hello.dot.dot && nyc --silent --no-clean ./bin/graphviz.js -Tsvg -otest/actual/hello.dot.svg test/hello.dot && nyc --silent --no-clean cp test/hello.dot test/actual/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -Tjson -O test/actual/hello.dot && rm test/actual/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -v -Tjson0 -otest/actual/hello.dot.json0 test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -v -Tplain test/hello.dot > test/actual/hello.dot.plain && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js -v -Tplain-ext -otest/actual/hello.dot.plain-ext && nyc --silent --no-clean ./bin/graphviz.js -Kneato -Tps -otest/actual/hello.dot.ps test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -y -Tps2 -otest/actual/hello.dot.ps2 test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -n1 -Tpng -otest/actual/hello.dot.png test/hello.dot && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js -v -Txdot > test/actual/hello.dot.xdot","test:err":"nyc --silent --no-clean ./bin/graphviz.js -Kinvalid || nyc --silent --no-clean ./bin/graphviz.js -v -Tinvalid || nyc --silent --no-clean ./bin/graphviz.js -n2 || nyc --silent --no-clean ./bin/graphviz.js -o || nyc --silent --no-clean ./bin/graphviz.js -K || nyc --silent --no-clean ./bin/graphviz.js -T || nyc --silent --no-clean ./bin/graphviz.js -Ounexpected || nyc --silent --no-clean ./bin/graphviz.js -v -X || true","test:cmp":"nyc --silent --no-clean node test/test","test:cov":"nyc report && nyc check-coverage","test":"npm run test:ts && npm run test:cli && npm run test:err && npm run test:cmp && npm run test:cov","all":"npm run build && npm run lint && npm run test"},"nyc":{"reporter":["lcov","text-summary"],"branches":95,"functions":100,"lines":100,"statements":100},"dependencies":{"@aduh95/viz.js":"3.0.1"},"peerDependencies":{"canvas":"2.6.1"},"devDependencies":{"@types/node":"14.0.13","@typescript-eslint/eslint-plugin":"3.2.0","@typescript-eslint/parser":"3.2.0","canvas":"2.6.1","eslint":"7.2.0","eslint-config-standard":"14.1.1","eslint-config-standard-with-typescript":"18.0.2","eslint-plugin-import":"2.21.2","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"4.2.1","eslint-plugin-standard":"4.0.1","nyc":"15.1.0","test":"0.6.0","typescript":"3.9.5"},"gitHead":"cfc5e3ce7557efb393e497571abc666a4219cfd0","_id":"graphviz-cli@1.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-aPv1r4kP7I5cVGu73WjVc/h5OdebB0z+acWiN+0YFnSRK2UQlWudp/xlqXCQdn/b5caw0GSxLysZS60K5pqRJw==","shasum":"9a487ddce36b8f31a2cb27ad944f2126cb1b5d5d","tarball":"https://registry.npmjs.org/graphviz-cli/-/graphviz-cli-1.0.0.tgz","fileCount":10,"unpackedSize":20424,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5njbCRA9TVsSAnZWagAARAUP/RXsPkjByhMee5OepdOa\ncjvu6kPICbMcM0bigZ2tj5L5yY1mBxyizpTi1iRoIQSIBou/N6impb97EbSG\nUumzbYYSRnnkZAsOvBiPkgm9APZ2RJux3xzMvHdPDmCDqkuCcJWKuE4hL8oS\nyZ7oLySj0LAXGt3lSJI/bm7OfDD5tejswPk9/sn+ERToH/cZzYEBXBpXWyJt\nV9/Uv2NphX22YPBAhMRso+G9/NSMR+53QYyLVUiDx1awmtUF6AuU4INfl0bE\nuWtC4HcxdcWGWEVP5V+QMq/6ast0DUhfDgObG2cGYh+TgG9OffXC76Beuneb\ni5UjGJSeHtr4JgfkIelfs5GN3MQZ6Pp6yYrFD26iLD/J7TXfe0aaz8uy0mph\nVjD3C+zbNz7MMOQkgmN0v9jlZj1eSwo4w+TxEvoPxIMpQUT44lqxo+224U1R\n2bPEaIxM6tDlgdsRE6wwgkMQqrnT06+fLqtIESNGS2XYdB3vxaaJxpxeefRk\nwxip53mIPe9EN/EotTfwcx7mygQZjiCjk3tlXi5DljXnahzjG+8GzHRCKMnP\nC+C/yJnj49ojR18AGSaKI5kw9d/yvAkcNJubjaVDotHIyimYgL1p3CAKy6d7\nOXOYuMHGZTZ64F4bsFsT74yK+rHNfYft3WhxF6NMpyDfyTwvi4kv/WdboHbG\n+kD4\r\n=YFuR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDscFY7z+jQxql/Z8kqQyg3TZ/qVE/jqFY95Or5vG6QCAIgaBZ6iE9ne91Tk+nPnYkqy37VcX2KycBoCcmWHVqB98I="}]},"maintainers":[{"name":"prantlf","email":"prantlf@gmail.com"}],"_npmUser":{"name":"prantlf","email":"prantlf@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphviz-cli_1.0.0_1592162522635_0.9276967584685698"},"_hasShrinkwrap":false},"1.0.1":{"name":"graphviz-cli","version":"1.0.1","description":"Command-line tool for generating graph images from Graphviz source scripts.","author":{"name":"Ferdinand Prantl","email":"prantlf@gmail.com","url":"http://prantlf.tk/"},"keywords":["graphviz","graph","dot"],"repository":{"type":"git","url":"git+https://github.com/prantlf/graphviz-cli.git"},"homepage":"https://github.com/prantlf/graphviz-cli#readme","bugs":{"url":"https://github.com/prantlf/graphviz-cli/issues"},"license":"MIT","engines":{"node":">=12"},"bin":{"graphviz":"bin/graphviz.js"},"main":"lib/index.js","types":"lib/index.d.ts","man":["man/graphviz.1"],"scripts":{"build:ts":"tsc test/typings.ts","build":"npm run build:ts","lint:js":"eslint --cache --max-warnings=0 --ignore-pattern=test/typings.js bin lib test","lint:ts":"eslint --cache --max-warnings=0 --cache-location .tslintcache -c .tslintrc.yml --ext=.ts lib test","lint":"npm run lint:js && npm run lint:ts","fix:js":"eslint --cache --max-warnings=0 --fix --ignore-pattern=test/typings.js bin lib test","fix:ts":"eslint --cache --max-warnings=0 --cache-location .tslintcache -c .tslintrc.yml --ext=.ts --fix lib test","fix":"npm run fix:js && npm run fix:ts","test:ts":"node test/typings","test:cli":"nyc --silent ./bin/graphviz.js -? && nyc --silent --no-clean ./bin/graphviz.js -V && mkdir -p test/actual && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js > test/actual/hello.dot.dot && nyc --silent --no-clean ./bin/graphviz.js -Tsvg -otest/actual/hello.dot.svg test/hello.dot && nyc --silent --no-clean cp test/hello.dot test/actual/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -Tjson -O test/actual/hello.dot && rm test/actual/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -v -Tjson0 -otest/actual/hello.dot.json0 test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -v -Tplain test/hello.dot > test/actual/hello.dot.plain && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js -v -Tplain-ext -otest/actual/hello.dot.plain-ext && nyc --silent --no-clean ./bin/graphviz.js -Kneato -Tps -otest/actual/hello.dot.ps test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -y -Tps2 -otest/actual/hello.dot.ps2 test/hello.dot && nyc --silent --no-clean ./bin/graphviz.js -n1 -Tpng -otest/actual/hello.dot.png test/hello.dot && cat test/hello.dot | nyc --silent --no-clean ./bin/graphviz.js -v -Txdot > test/actual/hello.dot.xdot","test:err":"nyc --silent --no-clean ./bin/graphviz.js -Kinvalid || nyc --silent --no-clean ./bin/graphviz.js -v -Tinvalid || nyc --silent --no-clean ./bin/graphviz.js -n2 || nyc --silent --no-clean ./bin/graphviz.js -o || nyc --silent --no-clean ./bin/graphviz.js -K || nyc --silent --no-clean ./bin/graphviz.js -T || nyc --silent --no-clean ./bin/graphviz.js -Ounexpected || nyc --silent --no-clean ./bin/graphviz.js -v -X || true","test:cmp":"nyc --silent --no-clean node test/test","test:cov":"nyc report && nyc check-coverage","test":"npm run test:ts && npm run test:cli && npm run test:err && npm run test:cmp && npm run test:cov","all":"npm run build && npm run lint && npm run test"},"nyc":{"reporter":["lcov","text-summary"],"branches":95,"functions":100,"lines":100,"statements":100},"dependencies":{"@aduh95/viz.js":"3.5.0"},"peerDependencies":{"canvas":"2.8.0"},"devDependencies":{"@types/node":"17.0.8","@typescript-eslint/eslint-plugin":"5.9.0","@typescript-eslint/parser":"5.9.0","canvas":"2.8.0","eslint":"8.6.0","eslint-config-standard":"16.0.3","eslint-config-standard-with-typescript":"21.0.1","eslint-plugin-import":"2.25.4","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.0.0","eslint-plugin-standard":"4.1.0","nyc":"15.1.0","test":"0.6.0","typescript":"4.5.4"},"gitHead":"f13f404fd262fad1366049b7b1713f9b7c48f49d","_id":"graphviz-cli@1.0.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-B/bJiWjDCOwaG8Q5gOE1zKmQ9peD38MiMY9roc1CJXYwbZW6zN566lQ2X64mQHaXQ6x1UZ/mobhf0/nEMuWNRw==","shasum":"3348356a0df532c78a6605c5b48a307fc61dea27","tarball":"https://registry.npmjs.org/graphviz-cli/-/graphviz-cli-1.0.1.tgz","fileCount":9,"unpackedSize":19886,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2+tJCRA9TVsSAnZWagAAlucP+gN6EXOVGzl6VvF1hJTH\ngWno+MIOE61emdHAJ7mkpvAYQg1+Ol6VeFq7d+VlkW8TC9Wf3ykon1b92X10\npanEmzPgaj8lUBqzdwE8CcMQC1/IkePRi1+K2iimhEg5CM6YqhA6ubDVgOFt\nVe7kjsle7Ae4wLwS9z5DIPMXFvzx7rWOnVfh/NHUv6WcVB/yiE6VPKB9WtvW\nGnE3lHGJx6Unz7oDmj1bHshJ+52bW8pT0tAqwbciuwFlPbhcjehylWg7zNcw\nkxiOCPvrIr9URjb2inIPIkUG+ttN66+bRwPJl92XomyU0fScXYXEP43BBpIj\nXBu48LFOZYTcvy37GA52u8ZrXCKsVqXNPy4785BqDJMiBk8W9Sj4O+x5+ZoK\n4czCd71lyuChXPkDCcwV3u07y/Z+6+dUtWSgqaml6EtjeF9eaYmgEn7KcL/E\n5KvyvlzWZLqhgYYTgTr4Oxdre2XYahRISuF34xSQ0QWKmKqfZF+YYsw0Y/GD\n4yNH8rDhABo1r4SQM5j1aZhlHbj+GTpDM6EEBloWJl3XInG5CQoCIhtFoC7H\nPO/lwzMA/qWvDUFNz3LQkcSsuv9UllfYYZP0Ga7x0s5n86TX5Xec3DTEnVrk\nITZs/KnkAduxbbdOirZ1AcIvQONF4cA+49CUMgr4EvMIkuzzbzE0n4uROZ3x\nPEOp\r\n=g8Sn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHx9hN3jQIu0yRoQE/KA7wjkO1ii4+LKr8dehP6QiFIuAiEA0qOoeMZ85kIMSVp8iJ/XSn7ysxJZZm67sfAVpXu5l8s="}]},"_npmUser":{"name":"prantlf","email":"prantlf@gmail.com"},"directories":{},"maintainers":[{"name":"prantlf","email":"prantlf@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphviz-cli_1.0.1_1641802568865_0.8984761851469185"},"_hasShrinkwrap":false},"2.0.0":{"name":"graphviz-cli","version":"2.0.0","description":"Command-line tool for generating graph images from Graphviz source scripts.","author":{"name":"Ferdinand Prantl","email":"prantlf@gmail.com","url":"http://prantlf.tk/"},"keywords":["graphviz","graph","dot"],"repository":{"type":"git","url":"git+https://github.com/prantlf/graphviz-cli.git"},"homepage":"https://github.com/prantlf/graphviz-cli#readme","bugs":{"url":"https://github.com/prantlf/graphviz-cli/issues"},"license":"MIT","engines":{"node":">=14.8"},"bin":{"graphviz":"bin/graphviz.cjs"},"type":"module","main":"lib/index.cjs","module":"lib/index.js","exports":{"require":"./lib/index.cjs","import":"./lib/index.js"},"types":"lib/index.d.ts","man":["man/graphviz.1"],"scripts":{"prepare":"rollup -c","test:esm":"node test/test.js","test:ts":"tsc --noEmit test/types.ts","test:cli":"c8 --reporter=none ./bin/graphviz.cjs -? && c8 --reporter=none --no-clean ./bin/graphviz.cjs -V && mkdir -p test/actual && cat test/hello.dot | c8 --reporter=none --no-clean ./bin/graphviz.cjs > test/actual/hello.dot.dot && c8 --reporter=none --no-clean ./bin/graphviz.cjs -Tsvg -otest/actual/hello.dot.svg test/hello.dot && c8 --reporter=none --no-clean cp test/hello.dot test/actual/hello.dot && c8 --reporter=none --no-clean ./bin/graphviz.cjs -Tjson -O test/actual/hello.dot && rm test/actual/hello.dot && c8 --reporter=none --no-clean ./bin/graphviz.cjs -v -Tjson0 -otest/actual/hello.dot.json0 test/hello.dot && c8 --reporter=none --no-clean ./bin/graphviz.cjs -v -Tplain test/hello.dot > test/actual/hello.dot.plain && cat test/hello.dot | c8 --reporter=none --no-clean ./bin/graphviz.cjs -v -Tplain-ext -otest/actual/hello.dot.plain-ext && c8 --reporter=none --no-clean ./bin/graphviz.cjs -Kneato -Tps -otest/actual/hello.dot.ps test/hello.dot && c8 --reporter=none --no-clean ./bin/graphviz.cjs -y -Tps2 -otest/actual/hello.dot.ps2 test/hello.dot && c8 --reporter=none --no-clean ./bin/graphviz.cjs -n1 -Tpng -otest/actual/hello.dot.png test/hello.dot && cat test/hello.dot | c8 --reporter=none --no-clean ./bin/graphviz.cjs -v -Txdot > test/actual/hello.dot.xdot && cat test/hello.dot | c8 --reporter=none --no-clean ./bin/graphviz.cjs -v -Tcanon > test/actual/hello.dot.canon","test:err":"c8 --reporter=none --no-clean ./bin/graphviz.cjs -Kinvalid || c8 --reporter=none --no-clean ./bin/graphviz.cjs -v -Tinvalid || c8 --reporter=none --no-clean ./bin/graphviz.cjs -n2 || c8 --reporter=none --no-clean ./bin/graphviz.cjs -o || c8 --reporter=none --no-clean ./bin/graphviz.cjs -K || c8 --reporter=none --no-clean ./bin/graphviz.cjs -T || c8 --reporter=none --no-clean ./bin/graphviz.cjs -Ounexpected || c8 --reporter=none --no-clean ./bin/graphviz.cjs -v -X || true","test:cmp":"c8 --reporter=none --no-clean node test/test.cjs","test:cov":"c8 report && c8 check-coverage","test":"denolint && npm run test:esm && npm run test:ts && npm run test:cli && npm run test:err && npm run test:cmp && npm run test:cov"},"c8":{"reporter":["lcov","text-summary"],"branches":100,"functions":100,"lines":100,"statements":100},"dependencies":{"@aduh95/viz.js":"3.7.0"},"devDependencies":{"@semantic-release/changelog":"6.0.2","@semantic-release/git":"10.0.1","@types/node":"18.11.13","c8":"7.12.0","canvas":"2.10.2","denolint":"2.0.5","graphviz-cli":"link:","rollup":"3.7.2","rollup-plugin-cleanup":"3.2.1","rollup-plugin-re":"1.0.7","tehanu":"1.0.1","tehanu-repo-coco":"1.0.0","tehanu-teru":"1.0.0","typescript":"4.9.4"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/changelog","@semantic-release/npm",["@semantic-release/github",{"failComment":false}],"@semantic-release/git"]},"gitHead":"cee0e5ce85e72cb66e45eca75b287f2b17e3a39c","_id":"graphviz-cli@2.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-DsjHNZTbH+mhcsMsgVh9xSXcpGX8ve7fn1nDywToFSXsamrfV+EyIpBGiOTqxk+FjEYm1985OQhO5PLw7wk17g==","shasum":"33e6462a73100c566bafc9f2e889e22f0391abdd","tarball":"https://registry.npmjs.org/graphviz-cli/-/graphviz-cli-2.0.0.tgz","fileCount":11,"unpackedSize":22626,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBok1qaGCZmKB1HLivAcywZfGfYItAGkuIG1F//8ec2fAiEAgSw3Gt83KRJFeskbGrMmX9Xq46RPm5zdshFSZpEBmNY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjlTGyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr5dQ//SomMvQUNn0prkweoOQqrqqFKp0W+Yz4G4gJBdOtEOsSVWcdu\r\n4VRkewuA2QR8HHSOjTa3Msey1QdfHGcIAh1rKnsZtFCBbMRtfbWRKcxGUDX+\r\n73+9CXVMsp+1c1/HCoIrNB2n1sV+PhxTILXR5twfirm7BJRTWumy+sE+T9b2\r\nNXQIydVm5IdP6BjszVpyPvaUdA43douE2yvD15EWoB2AOeLYmkjW9pETgCdL\r\nJerBSelEvBiBf9ndYxxHtcONPGeyaoz33gZ8HRIYKkVFFwkzyKoux9jLx+nv\r\nXlBXFmBC0FuTPlWEIwiQcWkeHY+MRHH5lGbuR3hUGfoXP9b60j4Qbo7CaXWU\r\nxSlDpD5VL77xWd2DatynmE3i/wVizK4LNkuQj321J1X1p/pP2X/26EaHSbKl\r\nqENoE2A0d9Brn91tjZ8bBAoZJajDCEvtcMJFbK1e7Ag4VwCpaflhAHffQUwr\r\ndOG3soAv3SWASCLkMo8+MR+BRkvy3GIBv6+Gm4FGzbwq6MxqoW7EbKeUNjnA\r\n5/eqJt57rE5OSEgv+X6g3VYgjIhosgYQE2vnOxdeidj0e68vcU7Jo7TFDDzU\r\nt6WefQlg+NlnU9snw8p48451Kn9Ly5yPyfhimLh5DEYeq5yNCa/BOeBm9zSN\r\nfWKVkt/N/2rGOEoLxhzq4mHmTgCREUdLofQ=\r\n=a3Ue\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"prantlf","email":"prantlf@gmail.com"},"directories":{},"maintainers":[{"name":"prantlf","email":"prantlf@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphviz-cli_2.0.0_1670721969219_0.16270568363392246"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-14T18:52:20.507Z","0.0.1":"2020-06-14T18:52:20.622Z","modified":"2022-12-11T01:26:10.590Z","1.0.0":"2020-06-14T19:22:02.879Z","1.0.1":"2022-01-10T08:16:09.144Z","2.0.0":"2022-12-11T01:26:10.516Z"},"maintainers":[{"name":"prantlf","email":"prantlf@gmail.com"}],"description":"Command-line tool for generating graph images from Graphviz source scripts.","homepage":"https://github.com/prantlf/graphviz-cli#readme","keywords":["graphviz","graph","dot"],"repository":{"type":"git","url":"git+https://github.com/prantlf/graphviz-cli.git"},"author":{"name":"Ferdinand Prantl","email":"prantlf@gmail.com","url":"http://prantlf.tk/"},"bugs":{"url":"https://github.com/prantlf/graphviz-cli/issues"},"license":"MIT","readme":"# graphviz-cli\n\n[![npm](https://img.shields.io/npm/v/graphviz-cli)](https://www.npmjs.com/package/graphviz-cli#top)\n[![codecov](https://codecov.io/gh/prantlf/graphviz-cli/branch/master/graph/badge.svg)](https://codecov.io/gh/prantlf/graphviz-cli)\n[![codebeat badge](https://codebeat.co/badges/9d85c898-df08-42fb-8ab9-407dc2ce2d22)](https://codebeat.co/projects/github-com-prantlf-graphviz-cli-master)\n![Dependency status](https://img.shields.io/librariesio/release/npm/graphviz-cli)\n\nCommand-line tool and [API] for generating graph images from [Graphviz] source scripts.\n\nFeatures:\n\n* Runs in pure JavaScript. Except for the `png` output.\n* No need to install the native [Graphviz] package.\n* Most output formats of the native [Graphviz] (inluding `svg` and `png`) available.\n* TypeScript type declarations (typings) for the [API].\n* [A lot faster](perf/README.md) then calling `dot` as a separate process.\n\nUses [@aduh95/viz.js] to render [Graphviz] scripts in pure JavaScript by [WASM]. Uses [node-canvas] for the optional `png` output.\n\nRelated tools:\n\n* [graphviz-builder] - generates the source script for [Graphviz] consumable by this tool\n* [graphviz-webcomponent] - WebComponent for web browsers to display graph images from the source scripts in HTML pages on-the-fly\n\n## Synopsis\n\n```\ngraphviz -Tsvg -ohello.svg hello.dot\n```\n\n```js\nimport { renderGraphFromSource } from 'graphviz-cli'\n// Render a string with the graph script to a string with the SVG output.\nconst svg = await renderGraphFromSource({ input: 'graph G { ... }' }, { format: 'svg' })\n// Render a file with a graph script to a file with the PNG output.\nawait renderGraphFromSource({ name: 'hello.dot' }, { format: 'png', name: 'hello.png' })\n```\n\n## Installation\n\nMake sure that you have installed [Node.js] 14.8 or newer.\n\nIf you want to use the command-line tool, install this package globally using your favourite package manager ([NPM], [Yarn] or [PNPM]):\n\n```\nnpm i -g graphviz-cli\nyarn global add graphviz-cli\npnpm i -g graphviz-cli\n```\n\nIf you want to use this package programmatically, install it locally using your favourite package manager. Add `-D` on the command line if you need the tool only to build you package:\n\n```\nnpm i graphviz-cli\nyarn add graphviz-cli\npnpm i graphviz-cli\n```\n\nIf you want to render graphs to `png`, install the [node-canvas] module in addition. Add `-g/global` or `-D` arguments according to you choice above:\n\n```\nnpm i canvas\nyarn add canvas\npnpm i canvas\n```\n\nStarting from the version 2.0.0, [node-canvas] is not a peer dependency any more, because NPM installs the peer dependencies automatically, making them not optional any more.\n\n## Command-line\n\nCommand-line parameters are the same as for the `dot` tool from the [Graphviz] package, as long as they are implemented, of course.\n\n```\n$ graphviz -?\n\nGenerates graph images from Graphviz source scripts.\n\nUsage: graphviz [-Vvy?] [-(KTon)<value>] <dot files>\n\nOptions:\n  -Tv           - set output format to 'v'\n  -Kv           - set layout engine to 'v' (overrides source script)\n  -ofile        - write output to 'file'\n  -O            - automatically generate an output filename based on the input\n                  filename with a .'format' appended. (Causes all -ofile\n                  options to be ignored.)\n  -y            - invert y coordinate in output\n  -n[v]         - no layout mode 'v' (=1)\n  -v            - enable verbose mode\n  -V            - print version and exit\n  -?            - print usage and exit\n\nExamples:\n  graphviz -Tsvg -O diagrams/*.dot\n  graphviz -Tpng -Kneato -odiagram.png diagram.dot\n```\n\n## API\n\n### renderGraphFromSource(source: object, options: object): Promise\\<string | Buffer\\>\n\nRenders a graph script to a specified output. If the output format is binary (`png`, for example), the Promise will contain `Buffer` instead of `string`.\n\n```js\nimport { renderGraphFromSource } from 'graphviz-cli'\n// Render a string with the graph script to a string with the SVG output.\nconst svg = await renderGraphFromSource({ input: 'graph G { ... }' }, { format: 'svg' })\n// Render a file with a graph script to a file with the PNG output.\nawait renderGraphFromSource({ name: 'hello.dot' }, { format: 'png', name: 'hello.png' })\n```\n\nSource properties:\n\n|  name   |  type    | description                     |\n|---------|----------|---------------------------------|\n| `name`  | `string` | file name with the graph script |\n| `input` | `string` | graph script                    |\n\nIf neither `name` nor `input` are provided, or the whole `source` parameter is omitted, the graph script will be read from the standard input.\n\nAvailable options:\n\n|  name     |  type     | description                                 |\n|-----------|-----------|---------------------------------------------|\n| `name`    | `string`  | file name for the generated graph output    |\n| `engine`  | `string`  | type of the layout to use for the graph rendering (`circo`, `dot`, `fdp`, `neato`, `osage`, `twopi`, default is `dot`)                   |\n| `format`  | `string`  | type of the output for the rendered graph (`svg`, `png`, `dot`, `xdot`, `plain`, `plain-ext`, `ps`, `ps2`, `json`, `json0`, `canon`, default is `dot`) |\n| `yInvert` | `boolean` | invert the y-coordinate in the graph output |\n| `nop`     | `number`  | no layout mode 'v' (`0` or `1`)             |\n\nIf `name` is not provided the output will be available only in the Promise. If the format `png` is specified, the NPM module [node-canvas] has to be installed, which is required as a peer-dependency of this package.\n\n### engines\n\nList of available graph layout engines: `circo`, `dot`, `fdp`, `neato`, `osage`, `twopi`.\n\n### formats\n\nList of available graph outout formats: `svg`, `png`, `dot`, `xdot`, `plain`, `plain-ext`, `ps`, `ps2`, `json`, `json0`, `canon`.\n\n## License\n\nCopyright (c) 2020-2022 Ferdinand Prantl\n\nLicensed under the MIT license.\n\n[Graphviz]: https://graphviz.org/\n[WASM]: https://developer.mozilla.org/en-US/docs/WebAssembly\n[@aduh95/viz.js]: https://github.com/aduh95/viz.js#readme\n[node-canvas]: https://github.com/Automattic/node-canvas#readme\n[graphviz-builder]: https://github.com/prantlf/graphviz-builder#readme\n[graphviz-webcomponent]: https://github.com/prantlf/graphviz-webcomponent#readme\n[Node.js]: https://nodejs.org/\n[NPM]: https://docs.npmjs.com/cli/npm\n[Yarn]: https://classic.yarnpkg.com/docs/cli/\n[PNPM]: https://pnpm.js.org/pnpm-cli\n[API]: #api\n","readmeFilename":"README.md"}