{"id":17048731,"url":"https://github.com/neocotic/escape-unicode","last_synced_at":"2025-04-12T16:12:33.581Z","repository":{"id":57227429,"uuid":"118903480","full_name":"neocotic/escape-unicode","owner":"neocotic","description":"Node.js library to escape Unicode","archived":false,"fork":false,"pushed_at":"2018-11-09T22:22:22.000Z","size":54,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-05T05:54:48.739Z","etag":null,"topics":["converter","escape","javascript","nodejs","unicode"],"latest_commit_sha":null,"homepage":null,"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/neocotic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-25T11:16:31.000Z","updated_at":"2024-07-25T05:23:28.000Z","dependencies_parsed_at":"2022-09-12T17:00:26.581Z","dependency_job_id":null,"html_url":"https://github.com/neocotic/escape-unicode","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocotic%2Fescape-unicode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocotic%2Fescape-unicode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocotic%2Fescape-unicode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neocotic%2Fescape-unicode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neocotic","download_url":"https://codeload.github.com/neocotic/escape-unicode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248594142,"owners_count":21130313,"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":["converter","escape","javascript","nodejs","unicode"],"created_at":"2024-10-14T09:52:52.305Z","updated_at":"2025-04-12T16:12:33.554Z","avatar_url":"https://github.com/neocotic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# escape-unicode\n\n[![Build Status](https://img.shields.io/travis/neocotic/escape-unicode/develop.svg?style=flat-square)](https://travis-ci.org/neocotic/escape-unicode)\n[![Coverage](https://img.shields.io/codecov/c/github/neocotic/escape-unicode/develop.svg?style=flat-square)](https://codecov.io/gh/neocotic/escape-unicode)\n[![Dev Dependency Status](https://img.shields.io/david/dev/neocotic/escape-unicode.svg?style=flat-square)](https://david-dm.org/neocotic/escape-unicode?type=dev)\n[![License](https://img.shields.io/npm/l/escape-unicode.svg?style=flat-square)](https://github.com/neocotic/escape-unicode/blob/master/LICENSE.md)\n[![Release](https://img.shields.io/npm/v/escape-unicode.svg?style=flat-square)](https://www.npmjs.com/package/escape-unicode)\n\n[escape-unicode](https://github.com/neocotic/escape-unicode) is a [Node.js](https://nodejs.org) library that can\nconvert Unicode characters into their corresponding Unicode escapes (\"\\uxxxx\" notation).\n\n* [Install](#install)\n* [API](#api)\n* [Bugs](#bugs)\n* [Contributors](#contributors)\n* [License](#license)\n\n## Install\n\nInstall using `npm`:\n\n``` bash\n$ npm install --save escape-unicode\n```\n\nYou'll need to have at least [Node.js](https://nodejs.org) 8 or newer.\n\n## API\n\n### `escapeUnicode(input[, start][, end])`\n\nConverts all characters within `input` to Unicode escapes.\n\nOptionally, a `start` index can be provided to begin conversion at a specific location within `input`. If `start` is not\nspecified, `null`, or negative, the conversion will begin at the start of `input`.\n\nSimilarly, an `end` index can be provided to stop conversion at a specific location within `input`. If `end` is not\nspecified, `null`, or negative, the conversion will stop at the end of `input`.\n\n#### Examples\n\n``` javascript\nconst escapeUnicode = require('escape-unicode');\n\nescapeUnicode('♥');\n//=\u003e \"\\\\u2665\"\nescapeUnicode('I ♥ Unicode!');\n//=\u003e \"\\\\u0049\\\\u0020\\\\u2665\\\\u0020\\\\u0055\\\\u006e\\\\u0069\\\\u0063\\\\u006f\\\\u0064\\\\u0065\\\\u0021\"\nescapeUnicode('I ♥ Unicode!', 2, 3);\n//=\u003e \"\\\\u2665\"\n```\n\n## Bugs\n\nIf you have any problems with this library or would like to see changes currently in development you can do so\n[here](https://github.com/neocotic/escape-unicode/issues).\n\n## Contributors\n\nIf you want to contribute, you're a legend! Information on how you can do so can be found in\n[CONTRIBUTING.md](https://github.com/neocotic/escape-unicode/blob/master/CONTRIBUTING.md). We want your suggestions and\npull requests!\n\nA list of contributors can be found in [AUTHORS.md](https://github.com/neocotic/escape-unicode/blob/master/AUTHORS.md).\n\n## License\n\nCopyright © 2018 Alasdair Mercer\n\nSee [LICENSE.md](https://github.com/neocotic/escape-unicode/raw/master/LICENSE.md) for more information on our MIT\nlicense.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneocotic%2Fescape-unicode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneocotic%2Fescape-unicode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneocotic%2Fescape-unicode/lists"}