{"id":23201139,"url":"https://github.com/codedotjs/unicode-escape-convert","last_synced_at":"2025-04-05T09:26:29.360Z","repository":{"id":57386141,"uuid":"135748094","full_name":"CodeDotJS/unicode-escape-convert","owner":"CodeDotJS","description":":unicorn: Convert local and remote files containing Unicode escapes to characters!","archived":false,"fork":false,"pushed_at":"2018-06-01T18:43:58.000Z","size":260,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T00:41:19.903Z","etag":null,"topics":["characters","cli-app","convert","emoji","escapes","unescape","unicode"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeDotJS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-01T17:55:27.000Z","updated_at":"2023-09-08T17:41:13.000Z","dependencies_parsed_at":"2022-08-31T21:14:34.121Z","dependency_job_id":null,"html_url":"https://github.com/CodeDotJS/unicode-escape-convert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Funicode-escape-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Funicode-escape-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Funicode-escape-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeDotJS%2Funicode-escape-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeDotJS","download_url":"https://codeload.github.com/CodeDotJS/unicode-escape-convert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247314678,"owners_count":20918887,"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":["characters","cli-app","convert","emoji","escapes","unescape","unicode"],"created_at":"2024-12-18T15:13:58.425Z","updated_at":"2025-04-05T09:26:29.339Z","avatar_url":"https://github.com/CodeDotJS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n\t\u003cbr\u003e\n\t\u003cimg width=\"100\" src=\"https://raw.githubusercontent.com/rishigiridotcom/rishigiri.com/a05c0f976c588639a19259049a2cc9dab8513d8e/github/uec/logo.png\" alt=\"unicode-escape-convert\"\u003e\n\t\u003cbr\u003e\n\t\u003ca href=\"https://travis-ci.org/CodeDotJS/unicode-escape-convert\"\u003e\u003cimg src=\"https://travis-ci.org/CodeDotJS/unicode-escape-convert.svg?branch=master\"\u003e\u003c/a\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/code_style-XO-5ed9c7.svg\"\u003e\n\t\u003cbr\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003eConvert local and remote files containing unicode escapes to characters!\u003c/p\u003e\n\n## Install\n\n```sh\n$ npm install --global unicode-escape-convert\n```\n__OR__\n```sh\n$ sudo npm install --global unicode-escape-convert\n```\n\n## Preview\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"https://raw.githubusercontent.com/rishigiridotcom/rishigiri.com/a05c0f976c588639a19259049a2cc9dab8513d8e/github/uec/preview.gif\"\u003e\n\u003c/p\u003e\n\n## Usage\n\n```\n Usage : uec \u003ccommand\u003e [file/text] \u003coption\u003e [arg]\n\n Commands : \u003cConversion - Unicode escapes to characters\u003e\n\n  -l, --local   Convert local files\n  -r, --remote  Convert remote files\n  -t, --text    Convert and print oneline text\n\n Options :\n  --read    Read the content of a local file\n  --save    Save the local or remote file with a desirable name\n\n NOTE : \u003coptions\u003e works with command --local and --remote\n\n Files will get saved with a random name if --save is not provided!\n\n```\n\n## Details\n\n- Suppose you've an unescaped unicode like `\\ud83d\\ude01` and you can want to convert it into the character, which is 😁. You can simply do -\n\n```sh\n$ uec -t \"\\ud83d\\ude01\"\n```\n\nData will always be under single or double quotes!\n\n- For locally saved file filled with unescaped unicodes. Suppose you've a file called `unicorn.txt` or `unicorn.json` and you want to convert it. Just do -\n\n```sh\n$ uec -l unicorn.txt\n```\n\n- Alternatively, you can provide `--save` flag to save the file, which can be followed by another flag as a name of the file, for example -\n\n```sh\n$uec -l unicorn.txt --save somename\n```\n\nBut, by default, the files will be saved with names like `somename-unicorn.txt` or `somename-unicorn.json`.\n\n- In case you just want to print the output without saving it as a new file, you can do the following -\n\n```\n$ uec -l unicorn.json --read\n```\n\n__`NOTE :`__ Currently, there is no support to add path of the file in order to do the conversion, `--local` command works only if the file is in same directory!\n\n- For remote files, there is a condition - The requsted data should be in the form of `txt/json`. For the sake of testing, I've uploaded two files to check the functionality\n\t- [`json`](https://goo.gl/19PySg)\n\t- [`txt`](https://goo.gl/hGqMFu)\n\nNow, to read the remote files, you can do -\n```sh\n$ uec -r https://goo.gl/19PySg\n```\nYou don't need `--read` flag in order to do so. For saving the online file, You just need to -\n\n```sh\n$ uec -r https://goo.gl/19PySg --save \u003coptional-name\u003e\n```\n\n__`NOTE :`__ I just made this for personal use. I hope other find it helpful too!\n\n## Related\n\n- __[`unicodechar-string`](https://github.com/CodeDotJS/unicodechar-string)__ `:` `Convert unicode escapes to characters!`\n\n## License\n\nMIT \u0026copy; [Rishi Giri](rishigiri.ml)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Funicode-escape-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedotjs%2Funicode-escape-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedotjs%2Funicode-escape-convert/lists"}