{"name":"convert-gitmoji","version":"0.0.2","description":"♻️ Convert strings to gitmojis","license":"MIT","author":{"name":"Conner Luka Bachmann","email":"mail@conner-bachmann.de"},"main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"siroc build","lint":"eslint --ext .ts .","release":"yarn build && standard-version && git push --follow-tags && npm publish"},"dependencies":{"typescript":"^4.6.3"},"devDependencies":{"@types/node":"^17.0.23","eslint":"^8.12.0","siroc":"^0.16.0","standard-version":"^9.3.2"},"gitHead":"53105b65725e150b7909e94f9bc37d621059b42c","_id":"convert-gitmoji@0.0.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-eFtS2NLA2Y4sysme0hBjNrGfMEfo/mxgpaVwMioJy7mGmB8podSkL82WAJulteMCdGa1bTBO6HlLiIXEoUDfuA==","shasum":"374aede93a23713c88c43bf710cf11b454663ed7","tarball":"http://registry-npm.ywwl.com/convert-gitmoji/download/convert-gitmoji-0.0.2.tgz","fileCount":5,"unpackedSize":6128,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWKb7ipSSzQbmZoj5rAuDRCf3h6v+QGaBbqqZ26NHnnAiA2z8psxHwbPGUsvHpvsSIpUWLX+ZbaiAroURtgiQHyzg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuB8AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq13A//aPAy7v5nJK9BF8pBl/1rOelrbGS/BqFa6hhn9R/bXYLwbTyu\r\nfzCKXmIIVAWP0zfEfvBS4Hv2q7Cpujy+Vhk8xvA+ot7RJpfkg7WtXH4fjHTu\r\nUG2o08VpnMQD4y/muqGVb0ijzhAipE/vcaYJRzTEeu21K6gfRAUSBCAp6lcF\r\ny0yAXt5Jb26lM9W2MnjYTfVA5SB92ZL3nyaiAAs4JQLXcQVTqcg5zFe14MtD\r\nvRdfabUznG17beOkDUiFG0d3owXyHJJHErF+m34ocx7GdGlnL/xV1jNnz0Y1\r\n1GDN0hth9jPOjXSE1ZtUWnT0FB9tZZTcF1pfSfp4re9Ty4J8dD1G2C+QzNki\r\nMfo8W2egWGUWGhE8QYi38KNtb+nQmSmAJNfiY9rde1qJzbIOuj/xvQkwU67a\r\nij36ov+n0m5AnQZx7OP3MydiNf3zQkL0jkLwHIUD+4Zsg4ViIGoFLFoY76OQ\r\ndGGk74QUgmZqRYmQXowxwhFYQ+xsgdmfTxkHA906jpcN52IA/XdyAS16ZkWo\r\n6awU/K/v2aiyIZ+ewrwO5UTobxS258yTo7w+LcFEmBn6u6Y6wjm/K3mTkgnM\r\nsEPtZotH5p2gnzFpnnV1x1ZAIcJ1adWjJe2dZhcOASMlzHsYEuxMhm2HVUbm\r\nxoY+hAXErN5oD/KzOqENZj2bHdvU2cuAgRM=\r\n=Y0RS\r\n-----END PGP SIGNATURE-----\r\n","size":2845,"noattachment":false,"key":"/convert-gitmoji/-/convert-gitmoji-0.0.2.tgz"},"_npmUser":{"name":"intevel","email":"info@conner-bachmann.de"},"directories":{},"maintainers":[{"name":"intevel","email":"info@conner-bachmann.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-gitmoji_0.0.2_1656233727863_0.49108887622284536"},"_hasShrinkwrap":false,"readme":"# convert-gitmoji\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]\n[![License][license-src]][license-href]\n\nSimple way to replace strings with gitmojis ♻️\n\n## Install\n\n```sh\n\n# Using npm\nnpm install convert-gitmoji\n\n# Using yarn\nyarn add convert-gitmoji\n```\n\n## Usage\n\n### `convert(content: string, withSpace?: boolean | \"leading\" | \"trailing\" | \"both\")`\n\nConvert all gitmojis in a string\n`withSpace` is default `false`, if `true` its sets a trailing (at the end of the string) whitespace after the converted gitmoji.\n\nFor more control, `withSpace` can also be set to `leading` for a whitespace *before the string*, `trailing` for a whitespace *at the end of the string* (same as `true`) or `both` to have the string surrounded by whitespaces.\n\n```js\n// CommonJS\nconst { convert } = require(\"convert-gitmoji\");\n\n// ESM\nimport { convert } from \"convert-gitmoji\";\n\nconvert(':arrow_up: bump qs from 6.10.3 to 6.10.4 (xxx) - **helper:** :pencil:  Updated TSDoc (xxx)', true);\n\n--> \"⬆️ bump qs from 6.10.3 to 6.10.4 (xxx) - **helper:** ✏️ Updated TSDoc (xxx)\"\n\nconvert(\"This:art:is on:fire:!\")\n\n--> \"This🎨is on🔥!\"\n\nconvert(\"This:art:is on:fire:!\", \"both\")\n\n--> \"This 🎨 is on 🔥 !\"\n```\n\n## License\n\nPublished under MIT - Made with ❤️ by Conner Luka Bachmann\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/convert-gitmoji/latest.svg\n[npm-version-href]: https://npmjs.com/package/convert-gitmoji\n[npm-downloads-src]: https://img.shields.io/npm/dt/convert-gitmoji.svg\n[npm-downloads-href]: https://npmjs.com/package/convert-gitmoji\n[github-actions-ci-src]: https://github.com/intevel/convert-gitmoji/actions/workflows/ci.yml/badge.svg\n[github-actions-ci-href]: https://github.com/intevel/convert-gitmoji/actions?query=workflow%3Aci\n[license-src]: https://img.shields.io/npm/l/convert-gitmoji.svg\n[license-href]: https://npmjs.com/package/convert-gitmoji\n","publish_time":1656233728036,"_cnpm_publish_time":1656233728036,"dist-tags":{"latest":"0.1.5"}}