{"name":"emoticon","version":"4.1.0","description":"Info on ASCII emoticons","license":"MIT","keywords":["alias","emoticon","name","shortcode","tag","unicode"],"repository":{"type":"git","url":"git+https://github.com/wooorm/emoticon.git"},"bugs":{"url":"https://github.com/wooorm/emoticon/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/node":"^22.0.0","c8":"^10.0.0","gemoji":"^8.0.0","markdown-table":"^3.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","remark-preset-wooorm":"^10.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.59.0"},"scripts":{"build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix","generate":"node --conditions development script/build-data.js && node --conditions development script/build-support.js","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run generate && npm run build && npm run format && npm run test-coverage"},"prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm",["remark-gfm",{"tablePipeAlign":false}],["remark-lint-table-pipe-alignment",false]]},"typeCoverage":{"atLeast":100,"ignoreCatch":true,"detail":true,"strict":true},"xo":{"prettier":true,"rules":{"unicorn/prefer-string-replace-all":"off"}},"_id":"emoticon@4.1.0","gitHead":"5b43e4c3e6fe43601790cc888a5e655fa9c1ffc4","homepage":"https://github.com/wooorm/emoticon#readme","_nodeVersion":"22.0.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-VWZfnxqwNcc51hIy/sbOdEem6D+cVtpPzEEtVAFdaas30+1dgkyaOQ4sQ6Bp0tOMqWO1v+HQfYaoodOkdhK6SQ==","shasum":"d5a156868ee173095627a33de3f1e914c3dde79e","tarball":"http://registry-npm.ywwl.com/emoticon/download/emoticon-4.1.0.tgz","fileCount":6,"unpackedSize":17318,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHP6SDKWJM2oW+lBFyxyMEyQLq5+8sKaFicYz2NOv3htAiAl72tqbWTrlapFl3zpHEi9uIb6dmL4ZJFARaraG34ZYw=="}],"size":5389,"noattachment":false,"key":"/emoticon/-/emoticon-4.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/emoticon_4.1.0_1722848470009_0.11796448216935307"},"_hasShrinkwrap":false,"readme":"# emoticon\n\n[![Build][badge-build-image]][badge-build-url]\n[![Coverage][badge-coverage-image]][badge-coverage-url]\n[![Downloads][badge-downloads-image]][badge-downloads-url]\n[![Size][badge-size-image]][badge-size-url]\n\nList of emoticons.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`emoticon`](#emoticon-1)\n* [List of emoticons](#list-of-emoticons)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Security](#security)\n* [Related](#related)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package contains info on ASCII emoticons.\n:p\n\n## When should I use this?\n\nYou can use this package for several reasons, typically in a build script,\nfor example to figure out which text emoticons map to what emoji.\n\n## Install\n\nThis package is [ESM only][github-gist-esm].\nIn Node.js (version 14.14+), install with [npm][npm-install]:\n\n```sh\nnpm install emoticon\n```\n\nIn Deno with [`esm.sh`][esm-sh]:\n\n```js\nimport {emoticon} from 'https://esm.sh/emoticon@4'\n```\n\nIn browsers with [`esm.sh`][esm-sh]:\n\n```html\n<script type=\"module\">\n  import {emoticon} from 'https://esm.sh/emoticon@4?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {emoticon} from 'emoticon'\n\nconsole.log(emoticon.slice(0, 3))\n```\n\nYields:\n\n```js\n[\n  {\n    description: 'angry face',\n    emoji: '😠',\n    emoticons: [\n      '>:(',  '>:[',\n      '>:-(', '>:-[',\n      '>=(',  '>=[',\n      '>=-(', '>=-['\n    ],\n    name: 'angry',\n    tags: [ 'mad', 'annoyed' ]\n  },\n  {\n    description: 'smiling face with smiling eyes',\n    emoji: '😊',\n    emoticons: [\n      ':\")',  ':\"]',  ':\"D',\n      ':-\")', ':-\"]', ':-\"D',\n      '=\")',  '=\"]',  '=\"D',\n      '=-\")', '=-\"]', '=-\"D'\n    ],\n    name: 'blush',\n    tags: [ 'proud' ]\n  },\n  {\n    description: 'broken heart',\n    emoji: '💔',\n    emoticons: [ '<\\\\3', '</3' ],\n    name: 'broken_heart',\n    tags: []\n  }\n]\n```\n\n## API\n\nThis package exports the identifier `emoticon`.\nThere is no default export.\n\n### `emoticon`\n\nList of emoticons (`Array<Emoticon>`), where each entry has the following\nfields:\n\n* `description` (`string`)\n  — associated description (from [`wooorm/gemoji`][github-gemoji])\n* `emoji` (`string`)\n  — corresponding emoji\n* `emoticons` (`Array<string>`)\n  — ASCII emoticons\n* `name` (`string`)\n  — name of an emoticon (preferred name from [`wooorm/gemoji`][github-gemoji])\n* `tags` (`Array<string>`)\n  — associated tags (from [`wooorm/gemoji`][github-gemoji])\n\n## List of emoticons\n\nSee [`support.md`][file-support].\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports an additional type `Emoticon`.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe.\n\n## Related\n\n* [`wooorm/gemoji`][github-gemoji]\n  — info on gemoji (GitHub emoji)\n* [`words/emoji-emotion`](https://github.com/words/emoji-emotion)\n  — list of emoji rated for valence\n* [`wooorm/emoticon`](https://github.com/wooorm/emoticon)\n  — info on ASCII emoticons\n* [`wooorm/strip-skin-tone`](https://github.com/wooorm/strip-skin-tone)\n  — strip skin-tones from emoji\n* [`wooorm.com/checkmoji`](https://wooorm.com/checkmoji/)\n  — check emoji across platforms\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][open-source-guide-contribute].\n\n## License\n\n[MIT][file-license] © [Titus Wormer][wooorm]\n\n<!-- Definitions -->\n\n[badge-build-image]: https://github.com/wooorm/emoticon/workflows/main/badge.svg\n\n[badge-build-url]: https://github.com/wooorm/emoticon/actions\n\n[badge-coverage-image]: https://img.shields.io/codecov/c/github/wooorm/emoticon.svg\n\n[badge-coverage-url]: https://codecov.io/github/wooorm/emoticon\n\n[badge-downloads-image]: https://img.shields.io/npm/dm/emoticon.svg\n\n[badge-downloads-url]: https://www.npmjs.com/package/emoticon\n\n[badge-size-image]: https://img.shields.io/bundlejs/size/emoticon\n\n[badge-size-url]: https://bundlejs.com/?q=emoticon\n\n[esm-sh]: https://esm.sh\n\n[github-gist-esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[file-license]: license\n\n[file-support]: support.md\n\n[npm-install]: https://docs.npmjs.com/cli/install\n\n[typescript]: https://www.typescriptlang.org\n\n[wooorm]: https://wooorm.com\n\n[github-gemoji]: https://github.com/wooorm/gemoji\n\n[open-source-guide-contribute]: https://opensource.guide/how-to-contribute/\n","publish_time":1722848470231,"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_cnpm_publish_time":1722848470231,"dist-tags":{"latest":"4.1.0"}}