{"_id":"@anb0s/plantuml-encoder","_rev":"2-697e232cbc1f21467be6a0e9b2a94f1a","name":"@anb0s/plantuml-encoder","dist-tags":{"latest":"1.5.1"},"versions":{"1.5.0":{"name":"@anb0s/plantuml-encoder","version":"1.5.0","description":"PlantUML encoder for browsers and Node.js","author":{"name":"Markus Hedvall","email":"mackanhedvall@gmail.com"},"contributors":[{"name":"Andre Bossert","email":"anb0s@anbos.de"},{"name":"Adrian Kosmaczewski","email":"55348+akosma@users.noreply.github.com"}],"repository":{"type":"git","url":"git+https://github.com/anb0s/plantuml-encoder.git"},"bugs":{"url":"https://github.com/anb0s/plantuml-encoder/issues"},"homepage":"https://github.com/anb0s/plantuml-encoder#readme","license":"MIT","keywords":["plantuml","encoder"],"main":"index.js","browser":{"./lib/deflate.js":"./lib/browser-deflate.js","./lib/inflate.js":"./lib/browser-inflate.js","./index.js":"./browser-index.js"},"devDependencies":{"pako":"=1.0.10","browserify":"^16.x","chai":"^4.x","mocha":"^6.x","standard":"^13.x","uglify-js":"^3.x"},"dependencies":{},"directories":{"lib":"lib","test":"test"},"scripts":{"test":"standard && mocha","build":"npm run browserify && npm run uglify","browserify":"npm run browserifyEncoder && npm run browserifyDecoder","browserifyEncoder":"browserify lib/encoder.js -s plantumlEncoder -o dist/plantuml-encoder.js","browserifyDecoder":"browserify lib/decoder.js -s plantumlEncoder -o dist/plantuml-decoder.js","uglify":"npm run uglifyEncoder && npm run uglifyDecoder","uglifyEncoder":"uglifyjs dist/plantuml-encoder.js -c -m -o dist/plantuml-encoder.min.js","uglifyDecoder":"uglifyjs dist/plantuml-decoder.js -c -m -o dist/plantuml-decoder.min.js"},"standard":{"ignore":"dist/"},"gitHead":"65c06685cb6de7a3bcb3fae9043b65e6d2ecfb89","_id":"@anb0s/plantuml-encoder@1.5.0","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-2iaqNPPLUwRyAft5ED8roqERZdB6cwvHGca88c6XlylisVsiEpnXJ9fczK8H+LNoCnI4tof7Fb9B4C1naljg8w==","shasum":"b7c2bde5ac0f208eb1423e290c5fb28e95a329d2","tarball":"https://registry.npmjs.org/@anb0s/plantuml-encoder/-/plantuml-encoder-1.5.0.tgz","fileCount":17,"unpackedSize":329839,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMqUeCRA9TVsSAnZWagAAiugP/AwxUpcOZLlAUXSFhDg2\n9qBgGnc272DIX0ikfIYJ4A5ivRzChegvswR4/DAhg2edeaTm6CTCwNchuLtC\nTmnxmLbhIlvaFf5gFIbFn/71A5k+6hiAbB0nyosL8hK1kdCJ3iwUC8TZpalc\nfYhLllEu19VZa+SUHu5z1grud7dYzJ51K3eAQz7R27tu7+OGyiuaZITQiwx0\nY7wM/cCj53fuoI4bP+cqbv+LFFpA/xhiPdHwJCIwzL/NW46MQDLvi34YFzy9\nv/O09RuXqYKcDE7zQV3kANc0c0tilJGu0/WvD1j+dWv9J/rUebOjc2M6440n\nBhdJ8T9NrwWomoTIE+ecLd+4u+IKYSfQn9XlP+OFs0SlTGQt3tyzwRllKYLC\n25gNfVfFx9GRWTPg979+4Qqmfw2tBZZ9jotqBTaeNWgGU6m9Lc/QzEpYn3SA\nrGESc8FBUWbz2MbSaHsqTLlmHS3jTDBdNcFycLckdKOPkU8ty1JJFzL/YjCI\nLZCe+OEM9hBoe1Yq4kWfN2sC3xUYuTYLO/ybjUXDzqpO2zFNLV5D+toRf6ES\nCw++NwgwVPdxdmglghcB9ZhrE+aqfaIUp2dBqqZPU2+B6IvfoXVrgRC5cukc\ntY3L9NJcN8EhrLGOdoR9K2wrXNOQf7iKFX7MR2A4esp4PMLfVukwmvHfmyKY\nPw4v\r\n=N8D5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAFfIyhGUZxmurCYj0Fn9R1hBXd/dr2IGtlZEoEyBopjAiEAxGhHQvHzWKKe7qAEhWWcwhEplRW8//9a+9gb7xy0Cxs="}]},"maintainers":[{"name":"anb0s","email":"anb0s@anbos.de"}],"_npmUser":{"name":"anb0s","email":"anb0s@anbos.de"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plantuml-encoder_1.5.0_1580377374477_0.7917617487644761"},"_hasShrinkwrap":false},"1.5.1":{"name":"@anb0s/plantuml-encoder","version":"1.5.1","description":"PlantUML encoder for browsers and Node.js","author":{"name":"Markus Hedvall","email":"mackanhedvall@gmail.com"},"contributors":[{"name":"Andre Bossert","email":"anb0s@anbos.de"},{"name":"Adrian Kosmaczewski","email":"55348+akosma@users.noreply.github.com"}],"repository":{"type":"git","url":"git+https://github.com/anb0s/plantuml-encoder.git"},"bugs":{"url":"https://github.com/anb0s/plantuml-encoder/issues"},"homepage":"https://github.com/anb0s/plantuml-encoder#readme","license":"MIT","keywords":["plantuml","encoder"],"main":"index.js","browser":{"./lib/deflate.js":"./lib/browser-deflate.js","./lib/inflate.js":"./lib/browser-inflate.js","./index.js":"./browser-index.js"},"devDependencies":{"pako":"=1.0.10","browserify":"^16.x","chai":"^4.x","mocha":"^6.x","standard":"^13.x","uglify-js":"^3.x"},"dependencies":{},"directories":{"lib":"lib","test":"test"},"scripts":{"test":"standard && mocha","build":"npm run browserify && npm run uglify","browserify":"npm run browserifyEncoder && npm run browserifyDecoder","browserifyEncoder":"browserify lib/encoder.js -s plantumlEncoder -o dist/plantuml-encoder.js","browserifyDecoder":"browserify lib/decoder.js -s plantumlEncoder -o dist/plantuml-decoder.js","uglify":"npm run uglifyEncoder && npm run uglifyDecoder","uglifyEncoder":"uglifyjs dist/plantuml-encoder.js -c -m -o dist/plantuml-encoder.min.js","uglifyDecoder":"uglifyjs dist/plantuml-decoder.js -c -m -o dist/plantuml-decoder.min.js"},"standard":{"ignore":"dist/"},"gitHead":"86cc18f2c31cac2f6fbf2beeaf27ea19585cf8ef","_id":"@anb0s/plantuml-encoder@1.5.1","_nodeVersion":"10.18.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-rlGj7fRG64hUC3Wa/gcWhvtfX89cV7aokpiUnfFj0jg/xYeICyXgwAKxodoLY3/tRA4jhoqZWxAaxu6xalmaqQ==","shasum":"2b87ad4bacf96f6dc156c95124ce9962e8cd1acc","tarball":"https://registry.npmjs.org/@anb0s/plantuml-encoder/-/plantuml-encoder-1.5.1.tgz","fileCount":17,"unpackedSize":329924,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeMqj8CRA9TVsSAnZWagAA618P/3TtkQiqRdwl+OEpF22W\nZa1cfWCw5COAmvSkuZlsXpVzDvqpdh1sb1ko0ZVgFWQMK/EgurfpZLzx516r\nvpBQYKbjn2qm/1iaG4trjnuDtgTztpk6Y8ZqVyY+chvFrMDIFY1BDQGHIHA5\nbUpUn13pEVKWh1wiUz/ClHBQAv4CVwZ/z/2kXNSD2qwFeShULvPaD56eRTl6\nxf0Uciar8nLjW95DIG6rP3rCP0VbvlMBtdTsxf7BhyIEHJsJwNCTLUY+E7Ng\newFG9zfEJh5HS2mGeBV9sBTlw+FGQeQKGnvjBpCmYEfljAMIcKv1WQuV5oYb\n/06SiG2LYa1u3QA0Sa3o/Pm1cuK0aIt7n5bnuMRUGCxznPOQNuAkYZpDIABa\n54Mxf3CC5iPNfTfVEf0MohE+bAjtuR5G6l7BLfQkr+KruhpoPegbghz79Wx9\nec5RsX74wc8CrTeNtb3hQnTAEJvpyrAXEpeuVWpPJZRSnEswMnCk41KXT8LJ\nIV0HG9VtP+NAP5Zt9ytSw6VrKaLOuTx6HUTz9odzSlMWor4XYjLg+spOXHMk\nHFK4XCFeiTVnNlP7jCvHgegbD4+dlv3icrxhq9EsPhYT8WY7AMTHYgIaDvQg\nGrv3TrH3p7WAunl61Bde/ACI331n6tF5asE6XmALqrko61o+L+EgJBuN7NSm\nvdfc\r\n=OOwP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7t4ZxURWZf7LRRs7BXRJ6qz1FW9pr7sV/rxg8dBEKSgIgHHANP5rD+nIHCNMXNq9py1BdbzmtuHmouB48OmvPkn8="}]},"maintainers":[{"name":"anb0s","email":"anb0s@anbos.de"}],"_npmUser":{"name":"anb0s","email":"anb0s@anbos.de"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/plantuml-encoder_1.5.1_1580378364516_0.2747869092281985"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-30T09:42:54.451Z","1.5.0":"2020-01-30T09:42:54.636Z","modified":"2022-04-04T13:55:40.820Z","1.5.1":"2020-01-30T09:59:24.649Z"},"maintainers":[{"name":"anb0s","email":"anb0s@anbos.de"}],"description":"PlantUML encoder for browsers and Node.js","homepage":"https://github.com/anb0s/plantuml-encoder#readme","keywords":["plantuml","encoder"],"repository":{"type":"git","url":"git+https://github.com/anb0s/plantuml-encoder.git"},"contributors":[{"name":"Andre Bossert","email":"anb0s@anbos.de"},{"name":"Adrian Kosmaczewski","email":"55348+akosma@users.noreply.github.com"}],"author":{"name":"Markus Hedvall","email":"mackanhedvall@gmail.com"},"bugs":{"url":"https://github.com/anb0s/plantuml-encoder/issues"},"license":"MIT","readme":"# plantuml-encoder\r\nPlantUML encoder for browsers and Node.js.\r\n\r\n[![npm Version](https://img.shields.io/npm/v/@anb0s/plantuml-encoder.svg)](https://www.npmjs.com/package/@anb0s/plantuml-encoder) [![build-status](https://travis-ci.org/anb0s/plantuml-encoder.svg?branch=master)](https://travis-ci.org/anb0s/plantuml-encoder) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)\r\n\r\nEncoded PlantUML can be used to create PlantUML URL links. It resolves PlantUML 'include' statements before encoding.\r\n\r\n# Install\r\n\r\nNode.js:\r\n\r\n```\r\nnpm install @anb0s/plantuml-encoder\r\n```\r\n\r\nbrowser:\r\n\r\n```\r\nbower install @anb0s/plantuml-encoder\r\n```\r\n\r\n# Example\r\n\r\n```javascript\r\nvar plantumlEncoder = require('@anb0s/plantuml-encoder')\r\n\r\nvar encoded = plantumlEncoder.encode('A -> B: Hello')\r\nconsole.log(encoded) // SrJGjLDmibBmICt9oGS0\r\n\r\nvar url = 'http://www.plantuml.com/plantuml/img/' + encoded\r\n```\r\n\r\nThe URL can then be used to display the diagram:\r\n\r\n![alt tag](http://www.plantuml.com/plantuml/img/SrJGjLDmibBmICt9oGS0)\r\n\r\n# Decode example\r\n\r\n```javascript\r\nvar plantumlEncoder = require('@anb0s/plantuml-encoder')\r\n\r\nvar plain = plantumlEncoder.decode('SrJGjLDmibBmICt9oGS0')\r\nconsole.log(plain) // A -> B: Hello\r\n\r\n```\r\n\r\n# License\r\nMIT\r\n","readmeFilename":"README.md"}