{"id":20575298,"url":"https://github.com/dimabory/ecoji-js","last_synced_at":"2025-04-14T17:52:45.937Z","repository":{"id":51806513,"uuid":"142123769","full_name":"dimabory/ecoji-js","owner":"dimabory","description":"JavaScript port of Ecoji","archived":false,"fork":false,"pushed_at":"2021-05-09T22:01:26.000Z","size":829,"stargazers_count":5,"open_issues_count":11,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T09:17:59.861Z","etag":null,"topics":["ecoji","ecoji-js","emoji","encoding","javascript","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ecoji-js","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimabory.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-07-24T07:48:54.000Z","updated_at":"2021-07-27T06:57:46.000Z","dependencies_parsed_at":"2022-08-29T00:11:21.924Z","dependency_job_id":null,"html_url":"https://github.com/dimabory/ecoji-js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimabory%2Fecoji-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimabory%2Fecoji-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimabory%2Fecoji-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimabory%2Fecoji-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimabory","download_url":"https://codeload.github.com/dimabory/ecoji-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248931520,"owners_count":21185190,"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":["ecoji","ecoji-js","emoji","encoding","javascript","typescript"],"created_at":"2024-11-16T05:38:50.680Z","updated_at":"2025-04-14T17:52:45.905Z","avatar_url":"https://github.com/dimabory.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ecoji-js | 1️⃣0️⃣2️⃣4️⃣  👨‍💻🔥#️⃣🌎🛫🕶️\n\n[![npm version](https://badge.fury.io/js/ecoji-js.svg)](https://www.npmjs.com/package/ecoji-js)\n[![Build Status](https://travis-ci.com/dimabory/ecoji-js.svg?branch=master)](https://travis-ci.com/dimabory/ecoji-js)\n[![codecov](https://codecov.io/gh/dimabory/ecoji-js/branch/master/graph/badge.svg)](https://codecov.io/gh/dimabory/ecoji-js)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0)\n\nA JavaScript implementation of the [Ecoji](https://github.com/keith-turner/ecoji) encoding standard. Provides a simple API to encode or/and decode data as a base-1024 sequence of emoji symbols.\n\n## Installation\n\n```bash\n# globally\n$ npm i -g ecoji-js\n$ ecoji -h\n\n# locally\n$ npm i -S ecoji-js\n$ ./node_modules/.bin/ecoji -h\n```\n\n## Usage\n\nThe library provides two public methods to encode and/or decode data: \n* `encode(str: string): string`\n* `decode(str: string): string`\n\n### Encoding\n```js\nconst ecoji = require('ecoji-js')\nconst str = 'Hello World'\necoji.encode(str)\n```\n```\n🏯🔩🚗🌷🍉👇🦒🕊👡☕☕☕\n```\n### Decoding\n```js\nconst ecoji = require('ecoji-js')\nconst str = '🏯🔩🚗🌷🍉👇🦒🕊👡☕☕☕'\necoji.decode(str)\n```\n```\nHello World\n```\n### CLI\n\n```bash\n$ ecoji -h\nUsage: ecoji [-d]\n\nEncode or decode data as Unicode emojis. 😁\n\nCommands:\n  ecoji -d  decode emoji to string\n\nOptions:\n  -d, --decode   decode data                          [boolean] [default: false]\n  --version, -v  Show version number                                   [boolean]\n  --help, -h     Show help                                             [boolean]\n\nExamples:\n  echo -n 123 | ./bin/ecoji\n  echo 🎌🚟🎈☕ | ./bin/ecoji -d\n\n```\n## [Ecoji encoding standard](https://github.com/keith-turner/ecoji/blob/master/docs/encoding.md)\nRead more about standard by following above link.\n\n## License\nThis project is licensed under the terms of the [Apache License 2.0](LICENSE).\n\nCopyright (©️) 2019 Dmytro Borysovskyi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimabory%2Fecoji-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimabory%2Fecoji-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimabory%2Fecoji-js/lists"}