{"id":17930552,"url":"https://github.com/lovasoa/html2unicode","last_synced_at":"2025-03-24T04:31:20.893Z","repository":{"id":52083205,"uuid":"147549969","full_name":"lovasoa/html2unicode","owner":"lovasoa","description":"Node module for transforming HTML into unicode","archived":false,"fork":false,"pushed_at":"2021-05-07T17:31:29.000Z","size":75,"stargazers_count":10,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T16:03:41.922Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovasoa.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-05T16:44:30.000Z","updated_at":"2025-02-06T20:11:02.000Z","dependencies_parsed_at":"2022-09-02T05:41:04.311Z","dependency_job_id":null,"html_url":"https://github.com/lovasoa/html2unicode","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fhtml2unicode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fhtml2unicode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fhtml2unicode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fhtml2unicode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasoa","download_url":"https://codeload.github.com/lovasoa/html2unicode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245211094,"owners_count":20578346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T21:14:07.907Z","updated_at":"2025-03-24T04:31:20.520Z","avatar_url":"https://github.com/lovasoa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html2unicode\n\nConverts html strings into unicode strings that use\nspecial unicode characters to simulate rich text.\n\nIt turns `Hello, \u003cb\u003eworld\u003c/b\u003e!` 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|`\u003cb\u003eHello\u003c/b\u003e` | 𝗛𝗲𝗹𝗹𝗼|\n|`\u003cstrong\u003eHello, world!\u003c/strong\u003e` | 𝗛𝗲𝗹𝗹𝗼, 𝘄𝗼𝗿𝗹𝗱!|\n|`\u003cem\u003ehello\u003c/em\u003e` | 𝘩𝘦𝘭𝘭𝘰|\n|`normal \u003ci\u003eitalics \u003cb\u003ebolditalics\u003c/b\u003e\u003c/i\u003e` | normal 𝘪𝘵𝘢𝘭𝘪𝘤𝘴 𝙗𝙤𝙡𝙙𝙞𝙩𝙖𝙡𝙞𝙘𝙨|\n|`\u003ci\u003e\u003cb\u003e0123456789\u003c/b\u003e\u003c/i\u003e` | 𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟴𝟵|\n|`\u003cpre\u003eHello, world!\u003c/pre\u003e` | 𝙷𝚎𝚕𝚕𝚘, 𝚠𝚘𝚛𝚕𝚍!|\n|`\u003ccode\u003eHello, world!\u003c/code\u003e` | 𝙷𝚎𝚕𝚕𝚘, 𝚠𝚘𝚛𝚕𝚍!|\n|`\u003ccode\u003eHello, \u003cb\u003eworld\u003c/b\u003e!\u003c/code\u003e` | 𝙷𝚎𝚕𝚕𝚘, 𝘄𝗼𝗿𝗹𝗱!|\n|`\u003csamp\u003e007\u003c/samp\u003e` | 𝟶𝟶𝟽|\n|`\u003cvar\u003ehello\u003c/var\u003e` | 𝓱𝓮𝓵𝓵𝓸|\n|`x\u003csub\u003e2\u003c/sub\u003e` | x₂|\n|`x\u003csup\u003e(n+1)\u003c/sup\u003e` | 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 = \"\u003cb\u003eHello, \u003ci\u003eworld\u003c/i\u003e\u003c/b\u003e!\";\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 = \"\u003cb\u003eHello, \u003ci\u003eworld\u003c/i\u003e\u003c/b\u003e!\";\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 '\u003cb\u003ebold\u003c/b\u003e'\n𝗯𝗼𝗹𝗱\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Fhtml2unicode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasoa%2Fhtml2unicode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Fhtml2unicode/lists"}