{"_id":"@alexbosworth/html2unicode","_rev":"2-ebc4c069eb2f5c770b20937e311febff","name":"@alexbosworth/html2unicode","dist-tags":{"latest":"1.1.5"},"versions":{"1.1.4":{"bin":{"html2unicode":"src/cli.js"},"contributors":[{"name":"Alex Bosworth"},{"name":"Ophir LOJKINE"}],"dependencies":{"saxophone":"0.6.1"},"description":"Convert HTML to unicode strings.","devDependencies":{"jsdoc-to-markdown":"5.0.3"},"keywords":["html","unicode","utf8","bold","italics"],"license":"ISC","name":"@alexbosworth/html2unicode","version":"1.1.4","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/alexbosworth/html2unicode.git"},"scripts":{"jsdoc":"jsdoc2md src/*.js > api.md","publish":"npm publish --access public","test":"node ./test/test.js"},"gitHead":"660ef797f0c30209e3ea45bc2f7c44276d0ec9d4","bugs":{"url":"https://github.com/alexbosworth/html2unicode/issues"},"homepage":"https://github.com/alexbosworth/html2unicode#readme","_id":"@alexbosworth/html2unicode@1.1.4","_nodeVersion":"12.14.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-pwZNCDbjyTSsxwyeGqYa9v4eMf9ZvPKuMQFFPpXHt5wNRAbxbY9F7lBVw1ep4Mj9sEs+uiM6vGdLbmgyfmh3pA==","shasum":"c81f377abeb116c8be7f02396298f02058bcbb5a","tarball":"https://registry.npmjs.org/@alexbosworth/html2unicode/-/html2unicode-1.1.4.tgz","fileCount":9,"unpackedSize":13146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQF3vCRA9TVsSAnZWagAAOx4P/iUdUly0IRm2aMNhj5Jw\n8nA+z51sYY2+/enCg5C71kfacLZPARba05c09cINAUdXYmhnJFfqGYhOkkBP\nM4wghnuOB8Ra6A+r/qynlzauqTqlH8oDnqHZ8htLFoZTTfL6aQBOxzRKtm58\nwaIvn482Cf2ChOtHw0AeVLKEm7tqLptg2KJ4cS4Bt9hvAD6j4b4q7M7T0UoJ\n8s3Y3xo6AyDwvZQnrj6Q9mwK/It/+DAG8vhnSUQsYL1j7T4kK2fvaLiz+yC5\n9qkZ31zrIK6060SDTnFpN6PxyNCHQKPDxwnGrlTpzxH9TqRqaMg5CJSl17wL\nSmUvzO/0GMNVcxJBOOz04wyxHKSLfdPsZVWnz60F6YHXaVwzST/kRtd7Pju8\nVw8sSCNYebmbIxqkvpFWHjXbmlUl9qTsjRV2QP1gStQGQ8nxHCAC7/Ry2r5Y\n24tHoOtXNz21YnuwHaHGS2/pQyH/SRzwARByywP/ZB6WZArjfgCIRnUjNcxA\nU/AfHx06qCqhNXKTTd6YUAVq3FSlJtdecXLBO69MRWD2aB8LG1uNF/hl2y1x\nenbcdUgCcwqfoYKb0MTmPXr/6xUi8Xjw5lNIKefKNhRTLzjycBIrVxOqpHvw\nl7SmkOuvCUt06w8kdSHU2rT6HoGpTJg8uAv6A3v3oVC+eg0LlhOoKCoJvi6m\neVbC\r\n=4kxS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMJp4B88ScvgvQyOePJONkQPg+e5a/+m4wuq4rcyXIlAiBXAW9/crXOUUy2yMh9EoLIqILHjNBc1JWaxuApcqvhXA=="}]},"maintainers":[{"name":"alexbosworth","email":"alex.bosworth+npm@gmail.com"}],"_npmUser":{"name":"alexbosworth","email":"alex.bosworth+npm@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html2unicode_1.1.4_1581276655393_0.033775575351338016"},"_hasShrinkwrap":false},"1.1.5":{"bin":{"html2unicode":"src/cli.js"},"contributors":[{"name":"Alex Bosworth"},{"name":"Ophir LOJKINE"}],"dependencies":{"@alexbosworth/saxophone":"0.6.2"},"description":"Convert HTML to unicode strings.","devDependencies":{"jsdoc-to-markdown":"6.0.1"},"keywords":["html","unicode","utf8","bold","italics"],"license":"ISC","name":"@alexbosworth/html2unicode","version":"1.1.5","main":"src/index.js","repository":{"type":"git","url":"git+https://github.com/alexbosworth/html2unicode.git"},"scripts":{"jsdoc":"jsdoc2md src/*.js > api.md","publish":"npm publish --access public","test":"node ./test/test.js"},"gitHead":"15c4f202da924d299ae2088bc2f749e3fedce870","bugs":{"url":"https://github.com/alexbosworth/html2unicode/issues"},"homepage":"https://github.com/alexbosworth/html2unicode#readme","_id":"@alexbosworth/html2unicode@1.1.5","_nodeVersion":"14.5.0","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CXMFAyovJHtLzKlraBpGlM/8TX9bvVz081IDZkQF3IMGHePgHCAs1vQdnKM38VMGekywNCbo7kt3fHooSMgA2w==","shasum":"937033d6d5de91b6afe5f4194be4630319d68e90","tarball":"https://registry.npmjs.org/@alexbosworth/html2unicode/-/html2unicode-1.1.5.tgz","fileCount":9,"unpackedSize":13174,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEmDLCRA9TVsSAnZWagAAoaIQAKGR+tJXn2MiN4HUCRYF\nYWfT3qVFI9Dj7lqk7kd07UOxbsWJMCxPwjNh/M1EU6XyVbEyncSjOb0pkqZI\nffX86yr+0/aR32K/1/3nkkexa42dlhZjQdIu+83oNG6z8MnVQWj9dNDP8yLI\nt+zo8+hTm+9uUWC+dVbrEWI/XvYgdFGIiM2gfGCyBggzFI7SdYz+Uvk1hHKn\nv5LzLh5xur8pgzHXH28sdTRk7QBCrqElvRUMd6RGValkjHwFZ7LJJJv6/6e6\nQdaJY5olusTWffd43K0NYYaE6ugMoneaR+RY9nkt6f5FePSsqUqCyGVFlBE0\n102o96pUbtK6aWaCyVXoYYxewOYK3d0PQGBdrw5L5u/5OzH/yKmLh2iFc6VM\nQALiwVTl0yVVfGvW4Vijn9opypLKE1NvZWvHlNpYURaz+PJXW31+RCHsPQgf\nT37fdn/UdZdNx58FKJzRhSB+f8Db9zRD6VWhsrp8rOJIkw5ocNzJ86Lz68CC\nIjpfpOK235rt0t4APKtZMIQcy409MTzNGepFGrag3HPpAxxr5/JJaIh5LdoQ\nBtAdPLC593/EZHyUElbZvg+AtfbH4VVG7qZNfWR7RoTsaXYPTzBWKSynd31b\nGQ3ycL722uxXphYg6P/uY1866sMZNzBrpvRxtdY1vUTpNQQNTtX7BHf5pDAS\nFLFW\r\n=7IAC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiWZZL3rRxpRUrswsqPo4gQ9J3igfpoRXN7ZSUNAM/xAIhALk72JiFTR0V/uGi780bbfj24sRosWA7dlBkPA2mfCLV"}]},"maintainers":[{"name":"alexbosworth","email":"alex.bosworth+npm@gmail.com"}],"_npmUser":{"name":"alexbosworth","email":"alex.bosworth+npm@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/html2unicode_1.1.5_1595039946926_0.24330542672759958"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-09T19:30:55.363Z","1.1.4":"2020-02-09T19:30:55.551Z","modified":"2022-04-04T12:39:27.148Z","1.1.5":"2020-07-18T02:39:07.147Z"},"maintainers":[{"name":"alexbosworth","email":"alex.bosworth+npm@gmail.com"}],"description":"Convert HTML to unicode strings.","homepage":"https://github.com/alexbosworth/html2unicode#readme","keywords":["html","unicode","utf8","bold","italics"],"repository":{"type":"git","url":"git+https://github.com/alexbosworth/html2unicode.git"},"contributors":[{"name":"Alex Bosworth"},{"name":"Ophir LOJKINE"}],"bugs":{"url":"https://github.com/alexbosworth/html2unicode/issues"},"license":"ISC","readme":"# html2unicode\n\nConverts html strings into unicode strings that use\nspecial unicode characters to simulate rich text.\n\nIt turns `Hello, <b>world</b>!` into `Hello, 𝘄𝗼𝗿𝗹𝗱!`.\n\n## Try it from your browser\n\nYou can [try this library online](https://npm.runkit.com/html2unicode).\n\n## Examples\n\n| html | html2unicode(html) |\n|------|--------------------|\n|`<b>Hello</b>` | 𝗛𝗲𝗹𝗹𝗼|\n|`<strong>Hello, world!</strong>` | 𝗛𝗲𝗹𝗹𝗼, 𝘄𝗼𝗿𝗹𝗱!|\n|`<em>hello</em>` | 𝘩𝘦𝘭𝘭𝘰|\n|`normal <i>italics <b>bolditalics</b></i>` | normal 𝘪𝘵𝘢𝘭𝘪𝘤𝘴 𝙗𝙤𝙡𝙙𝙞𝙩𝙖𝙡𝙞𝙘𝙨|\n|`<i><b>0123456789</b></i>` | 𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵|\n|`<pre>Hello, world!</pre>` | 𝙷𝚎𝚕𝚕𝚘, 𝚠𝚘𝚛𝚕𝚍!|\n|`<code>Hello, world!</code>` | 𝙷𝚎𝚕𝚕𝚘, 𝚠𝚘𝚛𝚕𝚍!|\n|`<code>Hello, <b>world</b>!</code>` | 𝙷𝚎𝚕𝚕𝚘, 𝘄𝗼𝗿𝗹𝗱!|\n|`<samp>007</samp>` | 𝟶𝟶𝟽|\n|`<var>hello</var>` | 𝓱𝓮𝓵𝓵𝓸|\n|`x<sub>2</sub>` | x₂|\n|`x<sup>(n+1)</sup>` | x⁽ⁿ⁺¹⁾ |\n\n## API\n\nSee [the full documentation](api.md).\n\n### Using ES6\n\n```js\nconst html2unicode = require(\"html2unicode\");\n\nasync function test() {\n\tconst htmlStr = \"<b>Hello, <i>world</i></b>!\";\n\tconst result = await html2unicode.html2unicode(htmlStr);\n\tconsole.log(result);\n}\n\ntest() // This will display \"𝗛𝗲𝗹𝗹𝗼, 𝙬𝙤𝙧𝙡𝙙!\";\n```\n\n### Using old-style promise chaining\n\n```js\nvar html2unicode = require(\"html2unicode\");\n\nvar htmlStr = \"<b>Hello, <i>world</i></b>!\";\n\nhtml2unicode\n\t.html2unicode(htmlStr)\n\t.then(function(str) {\n\t\tconsole.log(str);\n\t\t// This will display \"𝗛𝗲𝗹𝗹𝗼, 𝙬𝙤𝙧𝙡𝙙!\";\n\t});\n```\n\n## CLI\n\nThis package offers a command-line interface.\n\n```bash\n$ npx html2unicode '<b>bold</b>'\n𝗯𝗼𝗹𝗱\n```\n","readmeFilename":"readme.md"}