{"_id":"convert-unicode-fonts","_rev":"2-bd62b1a08f688b137743aeb572f48203","name":"convert-unicode-fonts","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"convert-unicode-fonts","version":"1.0.0","description":"transform strings to equivalent unicode characters, and revert","main":"dist/src/index.js","typings":"dist/src/index.d.ts","scripts":{"watch":"tsc --watch","build":" tsc","test":"npx ts-node spec/test.ts","prepare":"npm run build","prettier":"npx ts-refactor organizeImports \"src/**/*.ts*\" \"spec/**/*.ts*\" --dontAsk && npx prettier  --write --arrow-parens avoid --parser typescript --use-tabs false --no-semi true --single-quote true --tab-width 2 --trailing-comma none --end-of-line lf --prose-wrap preserve --print-width 120  --jsx-bracket-same-line true \"src/**/*.ts*\" \"spec/**/*.ts*\"","clean":"rm -rf dist","all":"npm run clean && npm run prettier && npm run build"},"author":{"name":"Martin Donadieu"},"license":"MIT","dependencies":{"yargs-parser":"^10.1.0"},"devDependencies":{"@types/jasmine":"^2.8.16","@types/node":"^10.5.2","@types/p-map":"^1.1.0","@types/shelljs":"^0.8.4","jasmine":"^3.1.0","prettier":"^1.16.4","shelljs":"^0.8.2","ts-node":"^7.0.1","typescript":"^3.4.3"},"repository":{"type":"git","url":"git+https://github.com/riderx/unicode-fonts.git"},"keywords":["unicode","unicode cleaner","font","fonts","convert","unicode font","convert unicode"],"gitHead":"f514c2450a89a5c3561f6988e24631aee708315c","bugs":{"url":"https://github.com/riderx/unicode-fonts/issues"},"homepage":"https://github.com/riderx/unicode-fonts#readme","_id":"convert-unicode-fonts@1.0.0","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-Px403J7YzFdv0uST3QT3k14cM9GAszqnyhW9xwnmOZ5blkAg36zWI0NAXECLS1PCLDMBWKZJ8qfsB8SSDFoE2A==","shasum":"420bb5272f8689b09d707a73351cb2ee3f48498b","tarball":"https://registry.npmjs.org/convert-unicode-fonts/-/convert-unicode-fonts-1.0.0.tgz","fileCount":24,"unpackedSize":27917,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwe7F8NR/nIsZVV1xxXI0wnM7UmTKQy4jo1UBQgFVbbwIhAKNXywtH/21mKTRKVSk8nlx4HAIAuQC3hmS6MMgwuYhV"}]},"_npmUser":{"name":"riderx","email":"martindonadieu@gmail.com"},"directories":{},"maintainers":[{"name":"riderx","email":"martindonadieu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-unicode-fonts_1.0.0_1634857589619_0.00522789044195382"},"_hasShrinkwrap":false},"1.0.1":{"name":"convert-unicode-fonts","version":"1.0.1","description":"transform strings to equivalent unicode characters, and revert","main":"dist/src/index.js","typings":"dist/src/index.d.ts","scripts":{"watch":"tsc --watch","build":" tsc","test":"npx ts-node spec/test.ts","prepare":"npm run build","prettier":"npx ts-refactor organizeImports \"src/**/*.ts*\" \"spec/**/*.ts*\" --dontAsk && npx prettier  --write --arrow-parens avoid --parser typescript --use-tabs false --no-semi true --single-quote true --tab-width 2 --trailing-comma none --end-of-line lf --prose-wrap preserve --print-width 120  --jsx-bracket-same-line true \"src/**/*.ts*\" \"spec/**/*.ts*\"","clean":"rm -rf dist","all":"npm run clean && npm run prettier && npm run build"},"author":{"name":"Martin Donadieu"},"license":"MIT","dependencies":{"yargs-parser":"^10.1.0"},"devDependencies":{"@types/jasmine":"^2.8.16","@types/node":"^10.5.2","@types/p-map":"^1.1.0","@types/shelljs":"^0.8.4","jasmine":"^3.1.0","prettier":"^1.16.4","shelljs":"^0.8.2","ts-node":"^7.0.1","typescript":"^3.4.3"},"repository":{"type":"git","url":"git+https://github.com/riderx/unicode-fonts.git"},"keywords":["unicode","unicode cleaner","font","fonts","convert","unicode font","convert unicode"],"gitHead":"f514c2450a89a5c3561f6988e24631aee708315c","bugs":{"url":"https://github.com/riderx/unicode-fonts/issues"},"homepage":"https://github.com/riderx/unicode-fonts#readme","_id":"convert-unicode-fonts@1.0.1","_nodeVersion":"14.17.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-ScVpoxkhCyFuPRSb/721ON3ROyBuAGLu90p6HLdf+uvKZ8RJlYLUAs8XHQQMacVrted7KKmk+mjvX/YtFseyqg==","shasum":"b095ff1b3bafdd20b27d169463b23a450f778767","tarball":"https://registry.npmjs.org/convert-unicode-fonts/-/convert-unicode-fonts-1.0.1.tgz","fileCount":24,"unpackedSize":28611,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIElrHt48HvI5y6dcP4W1F99ICaqxV3TXN4RlwldjvS9kAiB3epMCDCeNblYlwlZIxB2NWLy0vHjqkcm+YzZKzjpMQg=="}]},"_npmUser":{"name":"riderx","email":"martindonadieu@gmail.com"},"directories":{},"maintainers":[{"name":"riderx","email":"martindonadieu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-unicode-fonts_1.0.1_1634865582903_0.01714704130760447"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-21T23:06:29.619Z","1.0.0":"2021-10-21T23:06:29.824Z","modified":"2022-04-27T16:32:44.225Z","1.0.1":"2021-10-22T01:19:43.075Z"},"maintainers":[{"name":"riderx","email":"martindonadieu@gmail.com"}],"description":"transform strings to equivalent unicode characters, and revert","homepage":"https://github.com/riderx/unicode-fonts#readme","keywords":["unicode","unicode cleaner","font","fonts","convert","unicode font","convert unicode"],"repository":{"type":"git","url":"git+https://github.com/riderx/unicode-fonts.git"},"author":{"name":"Martin Donadieu"},"bugs":{"url":"https://github.com/riderx/unicode-fonts/issues"},"license":"MIT","readme":"Transform a string to its equivalent using unicode fonts:\n\n```\nconvert-unicode-fonts list\n * 𝐇𝐄𝐋𝐋𝐎 𝐖𝐎𝐑𝐋𝐃, 𝟎𝟏𝟐𝟑𝟒𝟓𝟔𝟕𝟔𝟖𝟗 : bold\n * 𝐻𝐸𝐿𝐿𝑂 𝑊𝑂𝑅𝐿𝐷, 01234567689 : italic\n * 𝑯𝑬𝑳𝑳𝑶 𝑾𝑶𝑹𝑳𝑫, 01234567689 : boldItalic\n * He𝒧𝒧o 𝒲o𝒭𝒧𝒟, 01234567689 : scriptItalic\n * 𝓗𝓔𝓛𝓛𝓞 𝓦𝓞𝓡𝓛𝓓, 01234567689 : scriptBold\n * H𝔈𝔏𝔏𝔒 𝔚𝔒𝔕𝔏𝔇, 01234567689 : fraktur\n * 𝕳𝕰𝕷𝕷𝕺 𝖂𝕺𝕽𝕷𝕯, 01234567689 : boldFraktur\n * H𝔼𝕃𝕃𝕆 𝕎𝕆𝕉𝕃𝔻, 𝟘𝟙𝟚𝟛𝟜𝟝𝟞𝟟𝟞𝟠𝟡 : doubleStruck\n * 𝖧𝖤𝖫𝖫𝖮 𝖶𝖮𝖱𝖫𝖣, 𝟢𝟣𝟤𝟥𝟦𝟧𝟨𝟩𝟨𝟪𝟫 : sansSerif\n * 𝗛𝗘𝗟𝗟𝗢 𝗪𝗢𝗥𝗟𝗗, 𝟬𝟭𝟮𝟯𝟰𝟱𝟲𝟳𝟲𝟴𝟵 : sansSerifBold\n * 𝘏𝘌𝘓𝘓𝘖 𝘞𝘖𝘙𝘓𝘋, 01234567689 : sansSerifItalic\n * 𝙃𝙀𝙇𝙇𝙊 𝙒𝙊𝙍𝙇𝘿, 01234567689 : sansSerifBoldItalic\n * 𝙷𝙴𝙻𝙻𝙾 𝚆𝙾𝚁𝙻𝙳, 𝟶𝟷𝟸𝟹𝟺𝟻𝟼𝟽𝟼𝟾𝟿 : monospace\n * ᴴᴱᴸᴸᴼ ᵂᴼᴿᴸᴰ, ⁰¹²³⁴⁵⁶⁷⁶⁸⁹ : super\n * 🄗🄔🄛🄛🄞 🄦🄞🄡🄛🄓, 0⑴⑵⑶⑷⑸⑹⑺⑹⑻⑼ : parenthesized\n * ⒽⒺⓁⓁⓄ ⓌⓄⓇⓁⒹ, 0①②③④⑤⑥⑦⑥⑧⑨ : circled\n * 🄷🄴🄻🄻🄾 🅆🄾🅁🄻🄳, 01234567689 : squaredCapital\n * 🅗🅔🅛🅛🅞 🅦🅞🅡🅛🅓, 01234567689 : negativeCircledCapital\n * 🅷🅴🅻🅻🅾 🆆🅾🆁🅻🅳, 01234567689 : negativeSquaredCapital\n * 🇭🇪🇱🇱🇴 🇼🇴🇷🇱🇩, 01234567689 : regionalIndicatorSymbol\n * ＨＥＬＬＯ ＷＯＲＬＤ, ０１２３４５６７６８９ : fullWidth\n * ꓧꓰꓡꓡꓳ ꓪꓳꓣꓡꓓ, 01234567689 : myanmar\n * ᎻᎬᏞᏞᎤ ᏔᎤᎡᏞᎠ, ᎾᏐ23Ꮞ5Ꮾ7Ꮾ8Ꮽ : cherokee\n * Hello World, ⅠⅡⅢⅣⅤⅥⅦⅧⅦⅨⅩ : romanNumerals\n * Hello World, ⅳⅴⅵⅶⅷⅸⅹⅺⅹⅻⅼ : romanNumeralsSmall\n```\n\nExplanation: unicode charset supports extra font families, so we replace normal character 'a' (char code 97) with character '𝓪' (char code 55349). So this are not currently font families or different fonts, it's the same font, that provides this special characters, some of them. \n\nNote: these are not using any ansi escape sequences. We could use those to add colors, bold, underline, etc in the command line. \n\nSome Unicode categories that contain these type of characters are: \n\n * Mathematical Alphanumeric Symbols\n\n# Usage\n## Install\n\n```\nnpm i convert-unicode-fonts\nyarn add convert-unicode-fonts\n```\n\n## API\n\n```ts\nimport { transform, getFonts, revertTransform } from 'convert-unicode-fonts';\nconst fonts = getFonts()\nconst s = transform('Hello', fonts['scriptItalic'])\nconst normal = revertTransform(s)\n```\n\n# Join\n\nThe option `join` will join the characters with given character. Take the following examples with different space characters: \n\n## no join\n```\nimport { transform, getFonts } from 'convert-unicode-fonts';\nconst fonts = getFonts()\nconst s = transform('abcdefXZYUPO91234 hello WORLD', fonts['circled'])\n// ⒶⒷⒸⒹⒺⒻⓍZⓎⓊⓅⓄ⑨①②③④ ⒽⒺⓁⓁⓄ ⓌⓄⓇⓁⒹ\n```\n## thin space\n```\nimport { transform, getFonts } from 'convert-unicode-fonts';\nconst fonts = getFonts()\nconst s = transform('abcdefXZYUPO91234 hello WORLD', fonts['circled'], \"0x2009\")\n// Ⓐ Ⓑ Ⓒ Ⓓ Ⓔ Ⓕ Ⓧ Z Ⓨ Ⓤ Ⓟ Ⓞ ⑨ ① ② ③ ④   Ⓗ Ⓔ Ⓛ Ⓛ Ⓞ   Ⓦ Ⓞ Ⓡ Ⓛ Ⓓ \n```\n## ideographic space\n```\nimport { transform, getFonts } from 'convert-unicode-fonts';\nconst fonts = getFonts()\nconst s = transform('abcdefXZYUPO91234 hello WORLD', fonts['circled'], \"0x3000\") # hair space\nⒶ　Ⓑ　Ⓒ　Ⓓ　Ⓔ　Ⓕ　Ⓧ　Z　Ⓨ　Ⓤ　Ⓟ　Ⓞ　⑨　①　②　③　④　 　Ⓗ　Ⓔ　Ⓛ　Ⓛ　Ⓞ　 　Ⓦ　Ⓞ　Ⓡ　Ⓛ　Ⓓ\n```\n## zero width space\n```\nimport { transform, getFonts } from 'convert-unicode-fonts';\nconst fonts = getFonts()\nconst s = transform('abcdefXZYUPO91234 hello WORLD', fonts['circled'], \"0x200b\") \n// Ⓐ​Ⓑ​Ⓒ​Ⓓ​Ⓔ​Ⓕ​Ⓧ​Z​Ⓨ​Ⓤ​Ⓟ​Ⓞ​⑨​①​②​③​④​ ​Ⓗ​Ⓔ​Ⓛ​Ⓛ​Ⓞ​ ​Ⓦ​Ⓞ​Ⓡ​Ⓛ​Ⓓ\n```\n\n## backspace\n```\nimport { transform, getFonts } from 'convert-unicode-fonts';\nconst fonts = getFonts()\nconst s = transform('abcdefXZYUPO91234 hello WORLD', fonts['circled'], \"0x0008\") \n// Ⓓ\n```\n\n# WARNING\n\nIn general it's a bad idea to use these characters to store text. The only useful situatoin where you would want to store text using these, is if you want to prevent text searches to find a string.\n\nThese characters should be only used to render normal text in mediums with limited fonts, like a terminal. \n","readmeFilename":"README.md"}