{"bugs":{"url":"https://github.com/xtermjs/xterm.js/issues"},"dist":{"shasum":"a8ce52a59685041bd3b6d6a2a77a3df8bc3daf29","tarball":"https://registry.npmjs.org/xterm-addon-serialize/-/xterm-addon-serialize-0.7.0-beta.3.tgz","fileCount":6,"integrity":"sha512-fgB0h8JiSN1cOMh3slenysprnGfFwbDZ/D38WA0Pdjxf3YDy4j2SwoUajlvXpkFWR7sHjVHmgpw/nHggO731KA==","signatures":[{"sig":"MEQCIFAkad/cNFUTxiojzQgPrUkvpHnjtZ7p86LSoQA3beHXAiBBsiKL9pxCZDj6dQRpmr+Wm+BEyxZJBjsqMQQMC1yxPw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":56826},"main":"lib/xterm-addon-serialize.js","name":"xterm-addon-serialize","types":"typings/xterm-addon-serialize.d.ts","author":{"url":"https://xtermjs.org/","name":"The xterm.js authors"},"readme":"## xterm-addon-serialize\n\nAn addon for [xterm.js](https://github.com/xtermjs/xterm.js) that enables xterm.js to serialize a terminal framebuffer into string or html. This addon requires xterm.js v4+.\n\n⚠️ This is an experimental addon that is still under construction ⚠️\n\n### Install\n\n```bash\nnpm install --save xterm-addon-serialize\n```\n\n### Usage\n\n```ts\nimport { Terminal } from \"xterm\";\nimport { SerializeAddon } from \"xterm-addon-serialize\";\n\nconst terminal = new Terminal();\nconst serializeAddon = new SerializeAddon();\nterminal.loadAddon(serializeAddon);\n\nterminal.write(\"something...\", () => {\n  console.log(serializeAddon.serialize());\n});\n```\n\nSee the full [API](https://github.com/xtermjs/xterm.js/blob/master/addons/xterm-addon-serialize/typings/xterm-addon-serialize.d.ts) for more advanced usage.\n\n### Benchmark\n\n⚠️ Ensure you have `lolcat`, `hexdump` programs installed in your computer\n\n```shell\n$ git clone https://github.com/xtermjs/xterm.js.git\n$ cd xterm.js\n$ yarn\n$ cd addons/xterm-addon-serialize\n$ yarn benchmark && yarn benchmark-baseline\n$ # change some code in `xterm-addon-serialize`\n$ yarn benchmark-eval\n```\n","license":"MIT","scripts":{"build":"../../node_modules/.bin/tsc -p .","package":"../../node_modules/.bin/webpack","benchmark":"NODE_PATH=../../out:./out:./out-benchmark/ ../../node_modules/.bin/xterm-benchmark -r 5 -c benchmark/benchmark.json","prepackage":"npm run build","benchmark-eval":"NODE_PATH=../../out:./out:./out-benchmark/ ../../node_modules/.bin/xterm-benchmark -r 5 -c benchmark/benchmark.json --eval out-benchmark/benchmark/*benchmark.js","prepublishOnly":"npm run package","benchmark-baseline":"NODE_PATH=../../out:./out:./out-benchmark/ ../../node_modules/.bin/xterm-benchmark -r 5 -c benchmark/benchmark.json --baseline out-benchmark/benchmark/*benchmark.js"},"_npmUser":{"name":"tyriar","email":"tyriar@tyriar.com"},"homepage":"https://github.com/xtermjs/xterm.js#readme","deprecated":"This package is now deprecated. Move to @xterm/addon-serialize instead.","repository":{"url":"git+https://github.com/xtermjs/xterm.js.git","type":"git"},"_npmVersion":"6.14.15","description":"An addon for [xterm.js](https://github.com/xtermjs/xterm.js) that enables xterm.js to serialize a terminal framebuffer into string or html. This addon requires xterm.js v4+.","directories":{},"maintainers":[{"name":"tyriar","email":"tyriar@tyriar.com"}],"_nodeVersion":"14.18.1","_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"xterm":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/xterm-addon-serialize_0.7.0-beta.3_1636129508192_0.3128117429832846","host":"s3://npm-registry-packages"},"_id":"xterm-addon-serialize@0.7.0-beta.3","version":"0.7.0-beta.3"}