{"_id":"o-ecoji-js","_rev":"1-b316efe6fd62f377f0417b2c52d0a653","name":"o-ecoji-js","dist-tags":{"latest":"1.1.4"},"versions":{"1.1.4":{"name":"o-ecoji-js","version":"1.1.4","description":"Encodes and/or decodes data as emojis. Implementation of the Ecoji Standard. Its base1024 with an emoji character set.","repository":{"type":"git","url":"git+https://github.com/dimabory/ecoji-js.git"},"keywords":["emoji","ecoji","ecoji-js","base1024","algo"],"author":{"name":"Dmytro Borysovskyi"},"license":"Apache-2.0","bugs":{"url":"https://github.com/dimabory/ecoji-js/issues"},"homepage":"https://github.com/dimabory/ecoji-js#readme","main":"dist/index.js","types":"dist/index.d.js","engines":{"node":">=8"},"bin":{"ecoji":"bin/cli.js"},"scripts":{"commit":"git-cz","changelog":"conventional-changelog -p angular -i CHANGELOG.md -s","docs":"typedoc lib --options typedoc.js","release:github":"git push --no-verify --follow-tags origin master","release:npm":"npm publish","release:preflight":"cd dist && npm pack","prerelease":"npm run build","release":"standard-version","postrelease":"npm run release:github && npm run release:npm","prepublish":"npm run build","prettier":"prettier --config .prettierrc.json --write","build":"rm -rf ./dist && tsc","lint":"tslint --project tsconfig.json --format codeFrame","lint:fix":"npm run lint -- --fix","test":"karma start","test:coverage":"npm t -- --coverage"},"devDependencies":{"@types/emojione":"^2.2.2","@types/jasmine":"^2.8.8","buffer":"5.1.0","commitizen":"^2.10.1","conventional-changelog-cli":"^2.0.1","cz-conventional-changelog":"^2.1.0","husky":"^0.14.3","jasmine":"^3.1.0","karma":"4.0.0","karma-chrome-launcher":"^2.2.0","karma-jasmine":"^1.1.2","karma-typescript":"^3.0.13","lint-staged":"^7.2.0","prettier":"^1.13.7","puppeteer":"^1.6.0-next.1532381444032","standard-version":"4.4.0","tslint":"^5.11.0","typedoc":"^0.11.1","typescript":"^2.9.2","validate-commit-msg":"^2.14.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"},"validate-commit-msg":{"types":"conventional-commit-types","maxSubjectLength":120}},"husky":{"hooks":{"commit-msg":"validate-commit-msg","pre-commit":"lint-staged","pre-push":"npm run style && npm run test"}},"lint-staged":{"**/*.{ts,tsx,js,jsx,css,scss,sass,less,md}":["npm run prettier","git add"],"lib/**/*.{ts,tsx}":["npm run lint:fix","git add"]},"dependencies":{"get-stdin":"6.0.0","yargs":"12.0.1"},"gitHead":"e396c27e07a48a2319b6226df610be6e2b015b61","_id":"o-ecoji-js@1.1.4","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"projectoblio","email":"satoshiquasimodo@gmail.com"},"dist":{"integrity":"sha512-veFzuH1o1/awr6ou2AHkj4rxQjzWbiNTZpvp2vVLlOQr1glW6UQSxZ0kKDR55FsZirYpWNnQLc55Nz5onRxmBw==","shasum":"59ca14a3ff4c0d8d0904f35e1b022737989c51ac","tarball":"https://registry.npmjs.org/o-ecoji-js/-/o-ecoji-js-1.1.4.tgz","fileCount":26,"unpackedSize":72280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcXOb1CRA9TVsSAnZWagAAWrIP+wUrLZDzt5lFDPS9rEd5\nSLgFPRYfDC6N4W8uM98bcwZBl9L0PKvd1t1QV+p8jqKiUIIYWysv4mKx2bPn\nfvq18Oxy8Mf3Z3w4Pe4vIe7i8Lku4GrBwq9qy8VtOqCmL8vLN+V9l/jqVGDA\n9ez9zw24H8L6/+SXqokmqAsa0F8d7s+SLneZCbDSQSeXB1W26dp1JXgjLmyo\nnn5cplh59QFO20cY1BuNpjPBLvuFT5RrSwPYfWtMALrUa//Wk4zQGiP4U32K\ne3CurT8eeNn9P8UKJU23XKTshzwIGJ4B0dChd3UPSNy4zJJ4n0bIkm0kuJn6\nkZkYZwelx2HCZVCaz2rKHC7t9pRy+auR6UA+zTMD32NNA7LdrwX4gp4d+mbm\nUaoN/argYIyLUyKAU4Sx1juwh987fXGiZ2y2I1IXdYnfdJFWGB/er2w2B0Z7\n2VCHNUpLxU4oH6NEZ50LXN/Tj0ulOCtW6+0N/3MEj5WX1KwFdFRqn//vmL0g\nyuR3xtbvp6usl8NAsq2rjpALrTG/k84TJK/lrBUZR21wc8D3OFdV1pW7+QGe\nVb7GNRa5XBSkqcRVDsJRRkFaZobmFMcWWkAG82ZO8w45xM82dPJCevm720TO\nYUmXM2G/3I1uWarexzWv6J7xvqtIfLe0p6lFhtsvvKsOzwtZ9zqSelN/3HNh\nClnF\r\n=dEdp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFf8YqagIP1gYzwK+FP6zs540Gsm6lhQ2SONakAPbAxmAiB/VWB5JzmTo2CSdjdAbk8+/vnEsayhmzYX6STqTr0z5A=="}]},"maintainers":[{"name":"projectoblio","email":"satoshiquasimodo@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/o-ecoji-js_1.1.4_1549592308297_0.03059193634025137"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-08T02:18:28.106Z","1.1.4":"2019-02-08T02:18:28.503Z","modified":"2022-05-12T00:01:50.009Z"},"maintainers":[{"name":"projectoblio","email":"satoshiquasimodo@gmail.com"}],"description":"Encodes and/or decodes data as emojis. Implementation of the Ecoji Standard. Its base1024 with an emoji character set.","homepage":"https://github.com/dimabory/ecoji-js#readme","keywords":["emoji","ecoji","ecoji-js","base1024","algo"],"repository":{"type":"git","url":"git+https://github.com/dimabory/ecoji-js.git"},"author":{"name":"Dmytro Borysovskyi"},"bugs":{"url":"https://github.com/dimabory/ecoji-js/issues"},"license":"Apache-2.0","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[![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","readmeFilename":"README.md"}