{"bugs":{"url":"https://github.com/xtermjs/xterm.js/issues"},"dist":{"shasum":"2d185c237bfc015dd968b1dcaec33702d43726d3","tarball":"https://registry.npmjs.org/xterm-addon-serialize/-/xterm-addon-serialize-0.12.0-beta.2.tgz","fileCount":6,"integrity":"sha512-EKt39SeYReP+AGZe3z1ggBaMrHZUvPpFoyY/6ZzLP2ayoAdu/dlqkG/5zrdgDST4MDl9QLTffnhN8SW2hXcnFw==","signatures":[{"sig":"MEUCIDGzsvPaF4I4eRqpQ8MZQ1MFK/Sn9QFa9+6xf4ciSOl3AiEAv3R7n9bMRc54s7LmLfUQCHgwYfr6hQvfcZYJMV+vAdI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":159695},"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","gitHead":"cc83b9a4ca25335ccf050febb545d60e8609646c","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","keywords":["terminal","xterm","xterm.js"],"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":"9.6.7","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":"18.17.1","_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"xterm":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/xterm-addon-serialize_0.12.0-beta.2_1694208601240_0.7974542512715639","host":"s3://npm-registry-packages"},"_id":"xterm-addon-serialize@0.12.0-beta.2","version":"0.12.0-beta.2"}