{"_id":"ansi-to-vue3","_rev":"2-d62d19fedb85371db61e353c2b84da86","name":"ansi-to-vue3","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"ansi-to-vue3","version":"0.1.0","description":"This package convert ANSI escape codes to formatted text output for Vue3. Copy from ansi-to-react.","keywords":["vue3","ansi","ansi-vue","ansi-vue3","ansi-to-vue","ansi-to-vue3"],"bugs":{"url":"https://github.com/jerrywu001/ansi-to-vue3/issues"},"repository":{"type":"git","url":"git+https://github.com/jerrywu001/ansi-to-vue3.git"},"license":"MIT","author":{"name":"jerrywu001","email":"57242263@163.com"},"main":"./dist/index.js","module":"./dist/esm/index.js","types":"./dist/index.d.ts","typings":"./dist/index.d.ts","workspaces":["playground"],"scripts":{"build":"tsup","clean":"rimraf -rf ./node_modules && rimraf -rf playground/node_modules && rimraf -rf package-lock.json","dev":"concurrently \"npm run build:css-watch\" \"npm run dev -w playground\"","dev:pack":"npm run dev:usepack -w playground","lint":"eslint --ext .ts,.tsx ./src","prepare":"chmod a+x .husky/* && husky install","prepublishOnly":"npm run build","release":"bumpp --commit --tag --push","test":"vitest","test:ui":"vitest --ui","typecheck":"tsc && vue-tsc"},"dependencies":{"anser":"^2.1.1","escape-carriage":"^1.3.0"},"devDependencies":{"@babel/core":"^7.21.0","@babel/plugin-transform-runtime":"^7.21.0","@babel/plugin-transform-typescript":"^7.21.0","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.21.0","@commitlint/cli":"^17.4.4","@commitlint/config-conventional":"^17.4.4","@swc/core":"^1.3.35","@testing-library/jest-dom":"^5.16.5","@testing-library/user-event":"^14.4.3","@testing-library/vue":"^6.6.1","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","@vitejs/plugin-vue":"^4.0.0","@vitejs/plugin-vue-jsx":"^3.0.0","@vitest/ui":"^0.28.5","@vue/babel-plugin-jsx":"^1.1.1","@vue/eslint-config-typescript":"^11.0.2","autoprefixer":"^10.4.13","babel-loader":"^9.1.2","bumpp":"^8.2.1","concurrently":"^7.6.0","core-js":"^3.28.0","esbuild-plugin-babel":"^0.2.3","eslint":"^8.34.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-airbnb-typescript":"^17.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-vue":"^9.9.0","husky":"^8.0.3","jsdom":"^21.1.0","lint-staged":"^13.1.2","npm":"^9.5.0","rimraf":"^4.1.2","tsup":"^6.6.3","typescript":"^4.9.5","vite":"^4.1.3","vitest":"^0.28.5","vue-tsc":"^1.1.5"},"peerDependencies":{"vue":"^3.2.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"engines":{"node":">=16","npm":">=7"},"gitHead":"c4799bb65352b63fd2ad3cfb1690366d0a0cbed3","homepage":"https://github.com/jerrywu001/ansi-to-vue3#readme","_id":"ansi-to-vue3@0.1.0","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-0lmtUpLASg8yJHliRHAKmemP3HkFFcoZwbFaJMtnKtdqaaNZLYMXfrLszdw4HcNEqQrxMqZNMCR/Kl5GaKWN2Q==","shasum":"4370de0279634d1e015c20f70efe30a0ecfc6397","tarball":"https://registry.npmjs.org/ansi-to-vue3/-/ansi-to-vue3-0.1.0.tgz","fileCount":6,"unpackedSize":36291,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBOM9ECrvqiHj8uNuQnxc4ToJ0nl3OpsQ95r7cbOoWxAiB+8BMgeccHXRYdFYYxLMT12PkAl+yJutpVgZBeWvnloQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9ImYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlwQ//dVAwIor3EGwlplCzJEy4+wKnkFU0bjoX0Dp1gv9Pqb0zO1yr\r\nCAa6HF9HhvvNBhEYnAa8XANlV8MoUxYDF+CqcFKgJFFil7N2W1XS9TuiKvCh\r\nDqmAM/WF5uvcr2vlBExq9hrabfSaCnHqnCZ4kmBkH2Az1FRXsRPQEAKKCcl/\r\nSfW+0zyKnlZdS1eGLFrTRL5zprdFi0rQ0Y3TLiEV6Jmno5dsSC1H4KS1PaZo\r\nLMn0Sy6MvSYZZhCLTMYlgKpENTcQ4K2sKMQVLL/I+IpHUQfgGR0Y8ZJb48C/\r\ny5ZSNyiCg137DbMsjPqukVqQHCOrcx1XRjEwO/H0Hfz7c0mvB2/QzsL1xt49\r\nuQYLaxC78MCVTLjqyFCe66S87swaxL9BonbKJVrY5Z/SqhVdaNiFybn4shDg\r\n4CSSV6W4Lml8CLiSwJWo+WP2mk8TJLU0IMO00OJLMGnuQckfACzU5HI1SAWC\r\ndz7hew3NYNNwxTY5LcU4hJ8+P3cdR9PX+cDbl3w7x5QhNWpbqMGpG3TSD+1d\r\nhtvBLAhUo0PQNTQPtJ9AfLgW90uXcTBCOkwJJfn2hPf6pV5S21XxQRwAAiZ4\r\nadPTvo89iFbLZqLt6jgM+Im1X3iT2MU7MKtGCXtT02Eyd+uIejEO3m2KUWY9\r\nplDm98hTQ5T4Z3QZjZkvougZ+xQXGW7Kkis=\r\n=T5kk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wc57242263","email":"57242263@163.com"},"directories":{},"maintainers":[{"name":"wc57242263","email":"57242263@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ansi-to-vue3_0.1.0_1676970392577_0.9174427900695667"},"_hasShrinkwrap":false},"0.1.1":{"name":"ansi-to-vue3","version":"0.1.1","description":"This package convert ANSI escape codes to formatted text output for Vue3. Copy from ansi-to-react.","keywords":["vue3","ansi","ansi-vue","ansi-vue3","ansi-to-vue","ansi-to-vue3"],"bugs":{"url":"https://github.com/jerrywu001/ansi-to-vue3/issues"},"repository":{"type":"git","url":"git+https://github.com/jerrywu001/ansi-to-vue3.git"},"license":"MIT","author":{"name":"jerrywu001","email":"57242263@163.com"},"main":"./dist/index.js","module":"./dist/esm/index.js","types":"./dist/index.d.ts","typings":"./dist/index.d.ts","workspaces":["playground"],"scripts":{"build":"tsup","clean":"rimraf -rf ./node_modules && rimraf -rf playground/node_modules && rimraf -rf package-lock.json","dev":"concurrently \"npm run build:css-watch\" \"npm run dev -w playground\"","dev:pack":"npm run dev:usepack -w playground","lint":"eslint --ext .ts,.tsx ./src","prepare":"chmod a+x .husky/* && husky install","prepublishOnly":"npm run build","release":"bumpp --commit --tag --push","test":"vitest","test:ui":"vitest --ui","typecheck":"tsc && vue-tsc"},"dependencies":{"anser":"^2.1.1","escape-carriage":"^1.3.0"},"devDependencies":{"@babel/core":"^7.21.0","@babel/plugin-transform-runtime":"^7.21.0","@babel/plugin-transform-typescript":"^7.21.0","@babel/preset-env":"^7.20.2","@babel/preset-typescript":"^7.21.0","@commitlint/cli":"^17.4.4","@commitlint/config-conventional":"^17.4.4","@swc/core":"^1.3.35","@testing-library/jest-dom":"^5.16.5","@testing-library/user-event":"^14.4.3","@testing-library/vue":"^6.6.1","@typescript-eslint/eslint-plugin":"^5.53.0","@typescript-eslint/parser":"^5.53.0","@vitejs/plugin-vue":"^4.0.0","@vitejs/plugin-vue-jsx":"^3.0.0","@vitest/ui":"^0.28.5","@vue/babel-plugin-jsx":"^1.1.1","@vue/eslint-config-typescript":"^11.0.2","autoprefixer":"^10.4.13","babel-loader":"^9.1.2","bumpp":"^8.2.1","concurrently":"^7.6.0","core-js":"^3.28.0","esbuild-plugin-babel":"^0.2.3","eslint":"^8.34.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-airbnb-typescript":"^17.0.0","eslint-plugin-import":"^2.27.5","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-vue":"^9.9.0","husky":"^8.0.3","jsdom":"^21.1.0","lint-staged":"^13.1.2","npm":"^9.5.0","rimraf":"^4.1.2","tsup":"^6.6.3","typescript":"^4.9.5","vite":"^4.1.3","vitest":"^0.28.5","vue-tsc":"^1.1.5"},"peerDependencies":{"vue":"^3.2.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"engines":{"node":">=16","npm":">=7"},"gitHead":"70ad4f65e8e106a36500a343d3731063da654699","homepage":"https://github.com/jerrywu001/ansi-to-vue3#readme","_id":"ansi-to-vue3@0.1.1","_nodeVersion":"16.19.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-YfqngiSS1DZctfcgBEdnLZL6GDfkvTrRdyRNVKWYQlTAQ7//REhn1E3aCWNP0rQRikbcx9mvIigUM/P9v7JDUg==","shasum":"74761ce72706b4dcd79a6bc359977c2408832983","tarball":"https://registry.npmjs.org/ansi-to-vue3/-/ansi-to-vue3-0.1.1.tgz","fileCount":6,"unpackedSize":36183,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGI6ocnBLT2LGTjF+4A9ppr2fp79aLgQArlHj0Rvmvt2AiEAoH4w64q9T7IcD+eeuPkevp0hCLxpAKiwqNNAoYncEC4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9Z4MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1uA//eTwFlCpRxTm9JvC2+W92cC0TtwW9lvXTRsaOv+JTKLlgYcQf\r\ng59Qj+3lhB9IJ2DZ/WO2q9mNjIlb0CX5GhIuQmhQbocu3V5DWtfA44JuLfwJ\r\n2DZicPVFGTjXRxuvSZs+JCXaW46TjP+cDEQAKG+JoTDLOeGoCHDXsPz8r3Tn\r\nPogmRMxt7jvMy60JMz1viBTzBJmG0sup8C/74POmEbBNZYd7QLIvHqiylgta\r\nSdhoo/nLl0Q5sB681d9tqS5+3fp4XoSgvkl8WI58WLf08suh9q6s/gzWGLfa\r\n8v0AVEgO5QdFQTXlDBq3KSTs3kcHEG0ZskIbqqbF5vXGjkWWSjViFiR1Z4/2\r\n0r2unAaBIf8kvEDa8LP3CwE8ql13qyozEk3qmVcLls59nuSz/zz8E30PxHr6\r\n/RJ93tI17Kf/M1CQ2AlgTg2U1QVV6VEsQtD9lq2IvFtQgtjmwjklw8Uohs8o\r\nGyO9dzeqgdVMVyDuFmKwwICtZ85d1XxNrsBkwui7sWMXV+NuV+6QfsAIG39o\r\n0194IwX6jeFhUbafsTGl2NzDY7NOfBL83f0Krz+UKY2WBIkWaYIimbGoBalA\r\n5y+re3+jaygdfpoiALxJ3i8nnaEP4Mz6ee9otIYg5Yhtj+EaXfcgDEkds7SR\r\nu8t/fjNIW564L2nSompSICXDYgsF0iqCB7w=\r\n=Ld5G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"wc57242263","email":"57242263@163.com"},"directories":{},"maintainers":[{"name":"wc57242263","email":"57242263@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ansi-to-vue3_0.1.1_1677041163851_0.13914837455777374"},"_hasShrinkwrap":false},"0.1.2":{"name":"ansi-to-vue3","version":"0.1.2","description":"This package convert ANSI escape codes to formatted text output for Vue3. Copy from ansi-to-react.","keywords":["vue3","ansi","ansi-vue","ansi-vue3","ansi-to-vue","ansi-to-vue3"],"bugs":{"url":"https://github.com/jerrywu001/ansi-to-vue3/issues"},"repository":{"type":"git","url":"git+https://github.com/jerrywu001/ansi-to-vue3.git"},"license":"MIT","author":{"name":"jerrywu001","email":"57242263@163.com"},"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./*":["./*","./*.d.ts"]},"typesVersions":{"*":{"*":["./dist/*","./*"]}},"workspaces":["playground"],"scripts":{"build":"tsup","clean":"rimraf -rf ./node_modules && rimraf -rf playground/node_modules && rimraf -rf package-lock.json","dev":"concurrently \"npm run build:css-watch\" \"npm run dev -w playground\"","dev:pack":"npm run dev:usepack -w playground","lint":"eslint --ext .ts,.tsx ./src","prepare":"chmod a+x .husky/* && husky install","prepublishOnly":"npm run build","release":"bumpp --commit --tag --push","test":"vitest","test:ui":"vitest --ui","typecheck":"tsc && vue-tsc"},"dependencies":{"anser":"^2.1.1","escape-carriage":"^1.3.1"},"devDependencies":{"@babel/core":"^7.22.10","@babel/plugin-transform-runtime":"^7.22.10","@babel/plugin-transform-typescript":"^7.22.10","@babel/preset-env":"^7.22.10","@babel/preset-typescript":"^7.22.5","@commitlint/cli":"^17.6.7","@commitlint/config-conventional":"^17.6.7","@swc/core":"^1.3.75","@testing-library/jest-dom":"^5.17.0","@testing-library/user-event":"^14.4.3","@testing-library/vue":"^7.0.0","@typescript-eslint/eslint-plugin":"^5.62.0","@typescript-eslint/parser":"^5.62.0","@vitejs/plugin-vue":"^4.2.3","@vitejs/plugin-vue-jsx":"^3.0.1","@vitest/ui":"^0.34.1","@vue/babel-plugin-jsx":"^1.1.5","@vue/eslint-config-typescript":"^11.0.3","autoprefixer":"^10.4.14","babel-loader":"^9.1.3","bumpp":"^9.1.1","concurrently":"^8.2.0","core-js":"^3.32.0","esbuild-plugin-babel":"^0.2.3","eslint":"^8.46.0","eslint-config-airbnb-base":"^15.0.0","eslint-config-airbnb-typescript":"^17.1.0","eslint-plugin-import":"^2.28.0","eslint-plugin-jsx-a11y":"^6.7.1","eslint-plugin-vue":"^9.16.1","husky":"^8.0.3","jsdom":"^22.1.0","lint-staged":"^13.2.3","npm":"^9.8.1","rimraf":"^5.0.1","tsup":"^7.2.0","typescript":"^5.1.6","vite":"^4.4.9","vitest":"^0.34.1","vue-tsc":"^1.8.8"},"peerDependencies":{"vue":"^3.2.0"},"peerDependenciesMeta":{"vue":{"optional":true}},"engines":{"node":">=16","npm":">=7"},"gitHead":"78afc544ccbddb1bd581086ce5f05246aac2dc7e","homepage":"https://github.com/jerrywu001/ansi-to-vue3#readme","_id":"ansi-to-vue3@0.1.2","_nodeVersion":"16.20.1","_npmVersion":"8.19.4","dist":{"integrity":"sha512-mkfWeVNBKfmpoWLeLqmAeKQalqvOyAhhMnndqu1oJZEzz8tn56mbUqJC7OfvB8cOEg70ooKjmgeIZoI0i9cdxw==","shasum":"58cd58b485c806d447fdf1d2e56b21ecc6eaf5e9","tarball":"https://registry.npmjs.org/ansi-to-vue3/-/ansi-to-vue3-0.1.2.tgz","fileCount":7,"unpackedSize":39281,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmDOvCD+XM1rBzbvilwaxo0XxGbnk5s30NJyXQDOCcFAiEA//ImoM+pTXfAdMUwxhoNSe2SIH3gpp/CnuGZHE0rgyI="}]},"_npmUser":{"name":"wc57242263","email":"57242263@163.com"},"directories":{},"maintainers":[{"name":"wc57242263","email":"57242263@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ansi-to-vue3_0.1.2_1691562003085_0.6530195749658976"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-21T09:06:32.576Z","0.1.0":"2023-02-21T09:06:32.763Z","modified":"2023-08-09T06:20:03.510Z","0.1.1":"2023-02-22T04:46:04.009Z","0.1.2":"2023-08-09T06:20:03.281Z"},"maintainers":[{"name":"wc57242263","email":"57242263@163.com"}],"description":"This package convert ANSI escape codes to formatted text output for Vue3. Copy from ansi-to-react.","homepage":"https://github.com/jerrywu001/ansi-to-vue3#readme","keywords":["vue3","ansi","ansi-vue","ansi-vue3","ansi-to-vue","ansi-to-vue3"],"repository":{"type":"git","url":"git+https://github.com/jerrywu001/ansi-to-vue3.git"},"author":{"name":"jerrywu001","email":"57242263@163.com"},"bugs":{"url":"https://github.com/jerrywu001/ansi-to-vue3/issues"},"license":"MIT","readme":"# ansi-to-vue3\n\nThis package convert ANSI escape codes to formatted text output for Vue3. Copy from ansi-to-react.\n\n## Installation\n\n```bash\n$ yarn add ansi-to-vue3\n```\n\n```bash\n$ npm install -S ansi-to-vue3\n```\n\n## playground\n\n```bash\ngit clone https://github.com/jerrywu001/ansi-to-vue3\n\nnpm i\n\nnpm run dev\n```\n\n## Usage\n\n### Basic\n\nThe example below shows how we can use this package to render a string with ANSI escape codes.\n\n```html\n<template>\n  <Ansi>{{ '\\u001b[34mhello world' }}</Ansi>\n</template>\n\n<script setup lang=\"ts\">\nimport Ansi from 'ansi-to-vue3';\n</script>\n```\n\nWill render:\n\n```javascript\n<code>\n  <span style=\"color:rgb(0, 0, 187)\">hello world</span>\n</code>\n```\n\n### Classes\n\nStyle with classes instead of `style` attribute.\n\n```html\n<template>\n  <Ansi use-classes>{{ \"\\u001b[34mhello world\" }}</Ansi>\n</template>\n\n<script setup lang=\"ts\">\nimport Ansi from 'ansi-to-vue3';\n</script>\n```\n\nWill render\n\n```javascript\n<code>\n  <span class=\"ansi-blue-fg\">hello world</span>\n</code>\n```\n\n#### Class Names\n\n| Font color             | Background Color |\n| ---------------------- | ---------------- |\n| ansi-black-fg          | ansi-black-bg    |\n| ansi-red-fg            | ansi-red-bg      |\n| ansi-green-fg          | ansi-green-bg    |\n| ansi-yellow-fg         | ansi-yellow-bg   |\n| ansi-blue-fg           | ansi-blue-bg     |\n| ansi-magenta-fg        | ansi-magenta-bg  |\n| ansi-cyan-fg           | ansi-cyan-bg     |\n| ansi-white-fg          | ansi-white-bg    |\n| ansi-bright-black-fg   |\n| ansi-bright-red-fg     |\n| ansi-bright-green-fg   |\n| ansi-bright-yellow-fg  |\n| ansi-bright-blue-fg    |\n| ansi-bright-magenta-fg |\n| ansi-bright-cyan-fg    |\n| ansi-bright-white-fg   |\n\n## Development\n\nTo develop on this project, fork and clone this repository on your local machine. Before making modifications, install the project's dependencies.\n\n```\n$ npm install\n```\n\nTo run the test suite for this project, run:\n\n```\n$ npm test\n```\n\n## Support\n\nIf you experience an issue while using this package or have a feature request, please file an issue on the [issue board](https://github.com/jerrywu001/ansi-to-vue3/issues),\n\n","readmeFilename":"README.md"}