{"name":"convert-gitmoji","version":"0.1.1","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","typecheck":"tsc --noEmit","test":"vitest"},"devDependencies":{"@types/node":"^17.0.23","@typescript-eslint/eslint-plugin":"^5.30.5","@typescript-eslint/parser":"^5.30.5","eslint":"^8.12.0","standard-version":"^9.3.2","typescript":"^4.6.3","unbuild":"^0.7.4","vitest":"^0.17.0"},"gitHead":"b18166001bca66effc557e7f7deebee49856111f","_id":"convert-gitmoji@0.1.1","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"integrity":"sha512-GiVfMWtM0JgHosPihsL6HPKWaVZP22me1fZED7k+RKPRHYvavsvZZCQxbJVKpneQw7prAlXT3YKKq7M9FEEqvA==","shasum":"75ded988831d1bdcf09b7642a02c34203c95b63a","tarball":"http://registry-npm.ywwl.com/convert-gitmoji/download/convert-gitmoji-0.1.1.tgz","fileCount":5,"unpackedSize":9915,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6rGVLhiLCqStTOIcQrnDGBWw2DBMaRaR78MMFYdoIxAIgYljOPf2ZnQGc4BJv99pxiB/fI0vx6wrrpoqTUlTf7xY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixD1kACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoldg/7BtzBx1l38Sp5PwNrKCtDdo+Vlj5/2gMohvSMWFTCMH3I7kMJ\r\nEWDMb39qpAqIc1ocPfU3Bs3+CmIz255FODREbMEHudKo6aKf5eWDexlCPKYG\r\nIKZbSq/KrbyM4kZ8ozhgrBkVmlInKRqi747hw66UD25dAHHMCEJuF1OkmnOm\r\npfYFOv/4/Copgr3/MCn3bmB2FA8to5t3yhhZM/+V7NzZyVvT8UhG5XTbRMmX\r\nVP3VlL4nAkhxOeA49zcVUCmjqNuzHxt9gV7Hqd2MpPunevfJl/uyiYtLP5po\r\nz48wduXlZ5+SB61xRURqmpw6cRmyyrPr6U4jZRUHCL9g8y1HuKzA1aJAqbGh\r\nfHR8rWm/R20gjh4ymOrS+XPqggCMGHBbDl4CuUGGPPOxgIepHDbDiDGGmBe8\r\nBsei2+K5ezMefPSyGkAoksLouC0nWb0h4soj4v/pR5RZ2F1iWXke9hxBG+ab\r\ncOU1EyrHlF7w16392Abih0v9T4oeQA/AGOm+dItlf0yC0A+ffGo/0mUZ89vv\r\nk30CfqLrOQMxdt/vXccK89h+LM23uRNz2BAD3vNyu440hjD7O0RkQiZePaXd\r\nQHkzxw1RDg4Efl7Nm3X4IFEIqXj8lUY3Fu4omv4RCXJ8UUFM/8jNNpB5MBQh\r\nCfTfs963Lkw+0fumEIyZN0vw9r7Zm4iSiow=\r\n=KDW2\r\n-----END PGP SIGNATURE-----\r\n","size":3234,"noattachment":false,"key":"/convert-gitmoji/-/convert-gitmoji-0.1.1.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.1.1_1657027940311_0.8726621000489483"},"_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":1657027940489,"_cnpm_publish_time":1657027940489,"dist-tags":{"latest":"0.1.5"}}