{"name":"convert-gitmoji","version":"0.0.3","description":"♻️ Convert strings to gitmojis","license":"MIT","author":{"name":"Conner Luka Bachmann","email":"mail@conner-bachmann.de"},"sideEffects":false,"type":"module","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.cjs","module":"./dist/index.mjs","scripts":{"build":"unbuild","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","standard-version":"^9.3.2","unbuild":"^0.7.4"},"gitHead":"58b65230e30e37d87d60a044f69c6cc7c33f733f","_id":"convert-gitmoji@0.0.3","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-BwKvlplQq8Ejk2LldUXbkdS2RUZ8E+Khmtsw0EFQ2EfYI3UFEdKjeuVHdJ9ojgK5EfM7XZ/vx2nXZpHOz5LRsw==","shasum":"432a4082b6a6d04771190196b46648c2358deee4","tarball":"http://registry-npm.ywwl.com/convert-gitmoji/download/convert-gitmoji-0.0.3.tgz","fileCount":5,"unpackedSize":8822,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4+7cvwYt+0PEfhfCVBp6E9ba/zJbjy65muokvpOzxAAIhAJaNtiVQLZYRzUNnUALNWBe/smCFhO/cl08DClaF4QQd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuZZBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZEw/+Nt18jhcYrf+36icZyHvyxijoWQzqvO3OFq1Tlf99X0NWN362\r\nasytOvDN3qjasjxNi1QNjLR+52TvgEECDdga/76hafYy6SfNBuWJMBo3fVh4\r\nNd33mGEQ7CwGH5fTUGHLXyhC/RrBTZtJnP9E076MoFszwRBmCyU4CPimslCv\r\n1K4ZZc+KQT6+7ySgpuZUH+zWGrAj9U2lB+3nxYD4j98B9ImBjWobBnE9HI46\r\nsWQpyqfjm0UsBkFX/imywMfDC/Nk4+gmD5b03xDKwAwNqQrAW2xMCptuTmEg\r\n/6valIE3N/4edfbH5fKu+IVXIYY7xXKvyFA5nuKHm37W/6DfSrbfNGnpqaG7\r\n53xGHMIR52wpreu4Rs+qYKjgbRrRi8or9dAX4tCDwbka9bK807QYOPoKy7ya\r\nMaCe0TjKX8JRFi31jJGC2FrC1/Npzj2yPFb5+vlwGxWO4dzPZMPBdrIuoyUg\r\nlDN6gCBBAu7T1No3TxibFTTXqOMCHvWU3Zm8uQtL4uaawneKhdUizMUExd3U\r\nMVUiNwhfGEABTe6pkiTRB4Sna/8cajOH9sa0/SufhyvRH63Xe6wHYHSq1Yun\r\n0OH83NU8EK1tgYAHjTtDCxK5GdHupDQgkD4xXgEjT8LhLP/UJLCuETKwjx7a\r\nzXfYN/WMjVMUB/SZouh7+H0A87/YiXvoz44=\r\n=FVlm\r\n-----END PGP SIGNATURE-----\r\n","size":2931,"noattachment":false,"key":"/convert-gitmoji/-/convert-gitmoji-0.0.3.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.3_1656329792865_0.8884924812438206"},"_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":1656329793085,"_cnpm_publish_time":1656329793085,"dist-tags":{"latest":"0.1.5"}}