{"name":"emoji-logger","version":"1.0.16","description":"Logging library based on flat colors and Emoji.","main":"lib/index.js","scripts":{"test":"node test"},"repository":{"type":"git","url":"git+ssh://git@github.com/IonicaBizau/emoji-logger.git"},"keywords":["emoji","logging","logger","terminal"],"author":{"name":"Ionică Bizău","email":"bizauionica@gmail.com","url":"https://ionicabizau.net"},"license":"MIT","bugs":{"url":"https://github.com/IonicaBizau/emoji-logger/issues"},"homepage":"https://github.com/IonicaBizau/emoji-logger#readme","dependencies":{"color-it":"^1.2.0","deffy":"^2.2.2","emojic":"^1.1.0","err":"^1.1.0","indento":"^1.1.0","is-win":"^1.0.4","ul":"^5.2.0"},"devDependencies":{"tester":"^1.3.0"},"blah":{"ex_img":"http://i.imgur.com/rp8lm00.png","related":["emojic"]},"_id":"emoji-logger@1.0.16","gitHead":"27885d4c328db29c75f6506ae85462fb98845303","_nodeVersion":"23.6.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-x24DOmWqv37QMQ2XQP3J9aaNNOQO0IDDr/qdWaq4olIMvj7SbNo8owmPi98JDxCWkiFaz+47gXxVz4meLK5myw==","shasum":"07a8d4d68ac6595f6a7266c470a0131d2902812e","tarball":"http://registry-npm.ywwl.com/emoji-logger/download/emoji-logger-1.0.16.tgz","fileCount":4,"unpackedSize":10725,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC6O5i00yZynI+7CZOOaJogZMUywBNJU9B3QVsYdhl/QwIgf7c03x2A9HFAhPPd36oLE2dS8AjoIsrrina65/4bz9M="}],"size":4422,"noattachment":false,"key":"/emoji-logger/-/emoji-logger-1.0.16.tgz"},"_npmUser":{"name":"ionicabizau","email":"bizauionica@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/emoji-logger_1.0.16_1739473809273_0.2752104583260755"},"_hasShrinkwrap":false,"readme":"<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n# emoji-logger\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/emoji-logger.svg)](https://www.npmjs.com/package/emoji-logger) [![Downloads](https://img.shields.io/npm/dt/emoji-logger.svg)](https://www.npmjs.com/package/emoji-logger) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/@johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)\n\n<a href=\"https://www.buymeacoffee.com/H96WwChMy\" target=\"_blank\"><img src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Buy Me A Coffee\"></a>\n\n\n\n\n\n\n\n> Logging library based on flat colors and Emoji.\n\n\n\n\n\n\n\n\n\n\n\n[![emoji-logger](http://i.imgur.com/rp8lm00.png)](#)\n\n\n\n\n\n\n\n## :cloud: Installation\n\n```sh\n# Using npm\nnpm install --save emoji-logger\n\n# Using yarn\nyarn add emoji-logger\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :clipboard: Example\n\n\n\n```js\nconst log = require(\"emoji-logger\");\n\n// Info message\nlog(\"The default type is info.\");\nlog(\"Show another info message\", \"info\");\nlog(\"A success message.\", \"success\");\nlog(\"Some nasty error\", \"error\");\nlog(\"Warning! Do not touch!\", \"warn\");\n\n// Add a new type\nlog.add(\"fail\", \"disappointed\", \"pomegranateBg\", 1);\n\n// Show the fail message\nlog(\"Something went wrong.\", \"fail\");\n```\n\n\n\n\n\n\n\n\n\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\n\n\n\n\n\n\n## :memo: Documentation\n\n\n### `emojiLogger(msg, type, override)`\nLogs the specified message.\n\n#### Params\n\n- **String** `msg`: The message to log.\n- **String** `type`: The message type (default: `\"info\"`).\n- **Object** `override`: An object to override the type object fields.\n\n### `log(msg, type, override)`\nWrites the input message having the type object.\n\n#### Params\n\n- **String** `msg`: The message to log.\n- **Object** `type`: The type object.\n- **Object** `override`: An object to override the type object fields.\n\n### `add(type, icon, color, indent, stream, boolean)`\nAdds a new logging type.\n\n#### Params\n\n- **String** `type`: The log type as string or an object containing:\n- **String** `icon`: The emoji icon name interpreted by [`emojic`](https://github.com/IonicaBizau/emojic).\n- **String** `color`: The color name (interpreted by [`color-it`](https://github.com/IonicaBizau/node-color-it)).\n- **Number** `indent`: The indent width.\n- **Stream** `stream`: The stream where the messages of this type will be written (default: `process.stdout`).\n- **displayEmoji** `boolean`: If `false`, emojis will not be added in the message. By default, it's `false` on Windows systems and `true` otherwise.\n\n#### Return\n- **Object** The type object.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n## :sparkling_heart: Support my projects\nI open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n    ![](https://i.imgur.com/z6OQI95.png)\n\n\nThanks! :heart:\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## :dizzy: Where is this library used?\nIf you are using this library in one of your projects, add it in this list. :sparkles:\n\n - `bloggify-tools`\n - `emojer-cli`\n - `emspect`\n - `gh-notifier`\n - `github-emojify`\n - `namly`\n - `packy`\n - `pull-from-source`\n - `rucksack.js`\n - `tester`\n - `tester-init`\n\n\n\n\n\n\n\n\n\n\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n\n\n\n\n\n[license]: /LICENSE\n[website]: https://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW\n","publish_time":1739473809511,"maintainers":[{"name":"ionicabizau","email":"bizauionica@gmail.com"}],"_cnpm_publish_time":1739473809511,"dist-tags":{"latest":"1.0.16"}}