{"_id":"strcolorize","_rev":"41-96f348e1622013c32235cff080e7e176","name":"strcolorize","dist-tags":{"latest":"1.1.8"},"versions":{"0.0.1":{"name":"strcolorize","version":"0.0.1","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"neveesx"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@0.0.1","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-1EHHroDYz0X44pOymaYWOdnoZim53cV6qdXFYMXJ9LvA3TOo8Z5T2QEiGoeOybTpoBLnwsda2oqktWLx5JQ9FQ==","shasum":"298805d552ef4c31f8c9007a849964577ed6852c","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-0.0.1.tgz","fileCount":5,"unpackedSize":15148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWMOdt0VIivX2MgZF5OKEfdqfR+LjSw42F9bhQlGGfVAIhAKqal6lcraLyBS23zsDp/pdWJJtRXTb1taehy52RSV26"}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_0.0.1_1708235590295_0.6080168907588674"},"_hasShrinkwrap":false},"1.0.0":{"name":"strcolorize","version":"1.0.0","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"neveesx"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.0.0","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-NtH9r8dGkZ9rSGKcxVJ8KUpXhSNcdfp2r0tq80pfCUBNZgNaF5wp1z6Z8x22wOV9BUsnXk8YIvDTrN5ND00a/A==","shasum":"89b8bcc6955a6e18b931bcae6b04fd79b9dce7f9","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.0.0.tgz","fileCount":5,"unpackedSize":15148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDO6YlrXfPyj65ZbFYwdKKrj94AM3WdCMdE+5W2jLZ7rwIhALWtyvcKi9fHlc2ztc6xK8eolG7psufBypdNN4gEaMvJ"}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.0.0_1708235830952_0.1367956362288849"},"_hasShrinkwrap":false},"1.0.1":{"name":"strcolorize","version":"1.0.1","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"neveesx"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.0.1","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-J2VRGPZQRD09p1Md1Xm96Xews5x5wtrmwtoxWKcEeHoo/MJ/PTVNURhu8S+0IZAqJZ+i+Nypqlt7BXEcCfOc+g==","shasum":"7170b323295cd6780869545268966758702a8e54","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.0.1.tgz","fileCount":5,"unpackedSize":15194,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJwGIpFhuuPxtDJlr18a9ZA1skWxqg1AcA05/sBYldfgIhAOjxIc8bOJyo9YdBG7nJb709WzvIrmgOH2la4482rgFW"}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.0.1_1708237069343_0.8708703014886172"},"_hasShrinkwrap":false},"1.0.2":{"name":"strcolorize","version":"1.0.2","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"neveesx"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.0.2","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-tmG7M6dKX3hBmDodeXPzad7wotCVufrugx3C7IJEitwjLK4fH5X6Uhn627/I3M654owZp0c0AnU3rTG+i9LtSg==","shasum":"8fed38e1709ae145f373acf220ca59c67555db55","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.0.2.tgz","fileCount":5,"unpackedSize":15464,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRA7Kfajsm1xM2gtKbGYI3BO/IIGb0WY5D35KbZVCQWAiAu6/qgtWYIr/PtQnVAZxWJV19mHIuJnZU9P2YIYTNo7Q=="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.0.2_1708268514977_0.5635004730597237"},"_hasShrinkwrap":false},"1.0.3":{"name":"strcolorize","version":"1.0.3","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"neveesx"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.0.3","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-cD0dBCOi/SFHtF0OVoITODXT+Wv4nQ5ESPpMutUVmBAe5iwxlq6n5vI1E660uRpshq6uJj+gzOXg2llNoygdag==","shasum":"b302aec77ae8569c0d7e8ad6b0e13b63b90453e8","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.0.3.tgz","fileCount":5,"unpackedSize":15871,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3Y/ivi2yaaJZLSAvvIc1QaHv36lPhS2TOVt6Si2oVaAiEAsRpsRmqThYD+0rQQKbtBKOUuHhfBlZ2hkQnUSOOXuuA="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.0.3_1708281834384_0.8157462139580336"},"_hasShrinkwrap":false},"1.0.4":{"name":"strcolorize","version":"1.0.4","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"neveesx"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.0.4","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-ndGTHzh3DOyDzAj3D0nKDMAxtIFuM+n2bca/GGNagYmqDzeURYbf3c7XSxdM+KuumfvaWi6pEZJxCF31CbKqLw==","shasum":"f96f1c0a6ebd9035e431b923209286842441ffe9","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.0.4.tgz","fileCount":5,"unpackedSize":15872,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC79C4rF4tdnWpUvN22eshwpUuoZFad1F7i9bLjEA2HrQIhAJ26ne1xLovi4gUoPLy2jwxDFS8WdpqJHGrFY2+LGJBk"}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.0.4_1708283242258_0.5248903634266004"},"_hasShrinkwrap":false},"1.0.7":{"name":"strcolorize","version":"1.0.7","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"neveesx"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.0.7","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-EQ2nvjupyQ9/Ttxbvri9sD43DhRk5q91EdO107ZJYQrgyQl/bScmsSYfzUehcTMEhoEizDEQfBEP/Q4rFMEoYA==","shasum":"3c1fea82e6869b8bc27ad1be12e14dbef75dc1a1","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.0.7.tgz","fileCount":9,"unpackedSize":22850,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmp+Hpn4xiMTlrSyY/zhwlBcooJROvrG3zzvdWqIjG0AIhALDI1nCfTsY1uFdPG/0i1LqdNjaHmT/qzu4nDCv2G7HX"}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.0.7_1708912572900_0.63714493813727"},"_hasShrinkwrap":false},"1.0.8":{"name":"strcolorize","version":"1.0.8","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"seveenxs"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.0.8","gitHead":"b08a0c8ca33371c33dd02fdd45301d4db174d595","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-805RmelxR66NkLN0xHleaIUqutcPpVOV08XHBwuJ01DiCHn9tCOyHnMB8hCAoTWJjCTElCohYTIe5f33zzl8xQ==","shasum":"683603995a76634f07c148d9ac715739b73ab9e1","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.0.8.tgz","fileCount":9,"unpackedSize":23148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGA2nr6RrEYqDxmfaN3nVdQD0jt82WWuSwC2gVYSaKNtAiBMpUVSAN4R+tyrjOPRXqqDyZfiS5Op/9PWTPqRRw95rg=="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.0.8_1709285951234_0.13844148946119295"},"_hasShrinkwrap":false},"1.0.9":{"name":"strcolorize","version":"1.0.9","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"seveenxs"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.0.9","gitHead":"b36ef2b93223a515028eaa9c1ae6d6bd1f2f729c","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-HNlS5dfVTLUxLp1XJQSVxfaF2z/5H7skerv8ag6WGYdejXCXHAh37mAn37HGRTDBrVSRdIi8J+pugaUDqIgjKw==","shasum":"5a54d1a381e158133fd607308572fb4dc38314ed","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.0.9.tgz","fileCount":9,"unpackedSize":23148,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB01jlKkxGP2wbQr+uF+mSZFgTCVPBpD/VS893j0iKCGAiARkmQR+aLng5F/NhRCiviclc2nGvvreQcJj2gphWvixA=="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.0.9_1710150059409_0.9705186852767358"},"_hasShrinkwrap":false},"1.1.0":{"name":"strcolorize","version":"1.1.0","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"seveenxs"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.1.0","gitHead":"b36ef2b93223a515028eaa9c1ae6d6bd1f2f729c","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-vIHem8Ztv1OWUT9TsKrS1dxD9eNNxYMne3JY5oVbGGfadD4o9k+2sXWkzkkG+y9/Xw8wqYAbkFzXKoGu89tvSA==","shasum":"6fc8d97c964e7265df1d87833d19b3b434e3a236","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.1.0.tgz","fileCount":9,"unpackedSize":21264,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFHFYd/jjN1t0y39GzXAQlocHm+uOj/qhIt/3WNr6G2gAiEA77+ASjEBol+Y/01GbODURYJQBxM1PQQM1Y2GfiNN/Qo="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.1.0_1710150112228_0.5781830199665594"},"_hasShrinkwrap":false},"1.1.0-beta.1":{"name":"strcolorize","version":"1.1.0-beta.1","description":"A lightweight package for coloring text using ANSI codes, perfect for adding visual style to terminal outputs.","main":"dist/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["terminal","console","colorize","ansi","colored"],"author":{"name":"seveenxs"},"license":"MIT","devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.1.0-beta.1","readme":"## 🧶 strcolorize\r\n**strcolorize** is a simple library for coloring text using codes (ANSI and hexadecimal), perfect for styling your terminal strings. **strcolorize** uses inline formatting (applies text formatting styles directly within the text line) to colorize your texts.\r\n\r\n---\r\n\r\n<p align=\"center\">\r\n  <img src=\"https://img.shields.io/npm/v/strcolorize?style=flat&logoColor=%23604970&label=version&color=%23595990\" alt=\"NPM Version\">\r\n  <img src=\"https://img.shields.io/npm/dm/strcolorize?style=flat&color=%23595990\" alt=\"NPM Downloads\">\r\n  <img src=\"https://img.shields.io/npm/l/strcolorize?style=flat&color=%23595990\" alt=\"NPM License\">\r\n  <br><img src=\"https://cdn.imgchest.com/files/pyq9cmxw8g4.png\" alt=\"Styles\">\r\n</p>\r\n\r\n---\r\n\r\n## 📦 Install\r\n```sh\r\nnpm install strcolorize\r\n```\r\n```sh\r\nyarn install strcolorize\r\n```\r\n\r\n## 🍿 Highlights\r\n- No dependencies\r\n- Ability to nest styles\r\n- Doesn't extend `String.prototype`\r\n- Clean and focused\r\n- Support for `Hexadecimal` codes (text colors)\r\n\r\n## 🎈 How To Usage?\r\n`colorize(input: string, terminal: boolean [Opcional]):`\r\n- `input:` The text to be styled.\r\n- `terminal:` Print directly to the terminal [default is false].\r\n\r\n```typescript\r\nconst colorize = require('strcolorize'); // module commonjs\r\nimport colorize from 'strcolorize'; // module esm\r\n\r\n// Coloring with ANSI codes.\r\ncolorize('This word is [red](red)', true)\r\n\r\n// Coloring with hexadecimal codes.\r\ncolorize('This especif word is [blue](#0000FF)', true)\r\n\r\n// Nesting colorizations.\r\ncolorize('[Welcome to [strcolorize](magenta) library](bold)', true)\r\n```\r\n\r\n**Terminal output:**<br>\r\n<br><img src=\"https://cdn.imgchest.com/files/myd5cpn8op4.png\" alt=\"Styles\">\r\n\r\n## 🎨 Colors and Styles\r\n\r\n### Text styles:\r\n- `reset:` Reset the current style.\r\n- `bold:` Make the text bold.\r\n- `italic:` Make the text italic.\r\n- `inverse:` Invert background and foreground colors.\r\n- `underline:` Put a horizontal line below the text.\r\n- `hidden:` Print the text but make it invisible.\r\n- `strikethrough:` Puts a horizontal line through the center of the text.\r\n\r\n### Text colors:\r\n- `black`\r\n- `red`\r\n- `green`\r\n- `yellow`\r\n- `blue`\r\n- `magenta`\r\n- `cyan`\r\n- `white`\r\n- `gray`\r\n\r\n### Text backgrounds:\r\n- `bgBlack`\r\n- `bgRed`\r\n- `bgGreen`\r\n- `bgYellow`\r\n- `bgBlue`\r\n- `bgCyan`\r\n- `bgWhite`\r\n\r\n## 💖 Contribuition\r\nYour contributions are highly valued! Feel free to enhance this project by opening an [issue](https://github.com/seveenxs/strcolorize/issues) to report any problems or submitting a [pull request](https://github.com/seveenxs/strcolorize/pulls) with your proposed changes.","readmeFilename":"readme.md","gitHead":"3f953b457b4da0d1721036d3a9a0f79ddd913e55","types":"./dist/index.d.ts","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-JmaE67Mxk7ISS0ylmolKO1YRmUiNm8NAinqlaGS8KCINDElMNZG0Wof5fgvYtx5E9ss/618n0EX4SzS3m0yqIg==","shasum":"4f92a6dc2f846f85200cdcfb13951c60576f8cf2","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.1.0-beta.1.tgz","fileCount":9,"unpackedSize":21271,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHhf86VAfZeFM02wtE9DeZ36p2qNtuxt+lSPvXQ2m3nFAiBpR95UdWIn6gcNLNSOsSHzaHd06FDpe2BE3AFwbWH3SA=="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.1.0-beta.1_1710151028342_0.8466773214796188"},"_hasShrinkwrap":false},"1.1.1-beta.2":{"name":"strcolorize","version":"1.1.1-beta.2","author":{"name":"seveenxs"},"description":"A library for coloring strings in your terminal.","license":"MIT","main":"lib/index.js","keywords":["ansi","console","terminal","color","colors"],"bugs":{"url":"https://github.com/seveenxs/strcolorize/issues"},"repository":{"type":"git","url":"git+https://github.com/seveenxs/strcolorize.git"},"scripts":{},"devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.1.1-beta.2","readme":"# 🖍️ strcolorize\r\nThe **strcolorize** library is a simple and practical tool designed to colorize terminal outputs using **`hexadecimal`** and **`ANSI`** codes. While some libraries modify the string prototype to colorize texts, the operation of **strcolorize** is different. It uses inline formatting to colorize your text.\r\n\r\n> **Inline formatting**\\\r\n> Inline formatting allows adding colors directly within text using specific codes (e.g., **`hexadecimal`** or **`ANSI`**) around desired portions, without altering the string's structure. This method offers flexibility in applying color styles to terminal outputs while preserving the integrity and structure of the original data.\r\n\r\n## 📦 Installation\r\nTo install the library using **npm** or **yarn**\r\n```bash\r\nnpm install strcolorize\r\n```\r\n```bash\r\nyarn install strcolorize\r\n```\r\n\r\n## ❓ How To Usage\r\nTo use this library, you must first [install it](#installation) in your project. After that, you will see an example below of how to import and use it in your project.\r\n\r\n<img src=\"https://i.postimg.cc/76sZQFC0/3.png\">\r\n\r\n### TERMINAL OUTPUT\r\n\r\n<img src=\"https://i.postimg.cc/4xVMLpK1/Screenshot-211.png\" href=\"Terminal output\">\r\n\r\n## 🔹 Ansi styles\r\n| Names             | Types       |\r\n|-------------------|-------------|\r\n| reset             | modifier    |\r\n| bold              | modifier    |\r\n| italic            | modifier    |\r\n| dim               | modifier    |\r\n| inverse           | modifier    |\r\n| underline         | modifier    |\r\n| hidden            | modifier    |\r\n| strikethrough     | modifier    |\r\n| overline          | modifier    |\r\n| black             | color       |\r\n| red               | color       |\r\n| green             | color       |\r\n| yellow            | color       |\r\n| blue              | color       |\r\n| magenta           | color       |\r\n| cyan              | color       |\r\n| white             | color       |\r\n| blackBright       | color       |\r\n| redBright         | color       |\r\n| greenBright       | color       |\r\n| yellowBright      | color       |\r\n| blueBright        | color       |\r\n| magentaBright     | color       |\r\n| cyanBright        | color       |\r\n| whiteBright       | color       |\r\n| bgBlack           | background  |\r\n| bgRed             | background  |\r\n| bgGreen           | background  |\r\n| bgYellow          | background  |\r\n| bgBlue            | background  |\r\n| bgMagenta         | background  |\r\n| bgCyan            | background  |\r\n| bgWhite           | background  |\r\n| bgBlackBright     | background  |\r\n| bgRedBright       | background  |\r\n| bgGreenBright     | background  |\r\n| bgYellowBright    | background  |\r\n| bgBlueBright      | background  |\r\n| bgMagentaBright   | background  |\r\n| bgCyanBright      | background  |\r\n| bgWhiteBright     | background  |\r\n\r\n## 💖 Contribuition\r\nYour contributions are highly valued! Feel free to enhance this project by opening an [issue](https://github.com/seveenxs/strcolorize/issues) to report any problems or submitting a [pull request](https://github.com/seveenxs/strcolorize/pulls) with your proposed changes.","readmeFilename":"readme.md","gitHead":"60e634d55a89e07d490603d92b2e1fda46071944","types":"./lib/index.d.ts","homepage":"https://github.com/seveenxs/strcolorize#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-46zIeMVzzQyPmCXi7XLd2kOWzZxCzQl3+jUZ/DLHgl6rjCNQIwjEk/BzOw0Q2tgE9JrptUmcWknUYwogaO2TGA==","shasum":"6cf1b300844550fceb305be9db5f109c2440622b","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.1.1-beta.2.tgz","fileCount":11,"unpackedSize":25685,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICMCvRenEnTXg2P9Huo03TIJhsFfh+FVqW5tGFBDxs/bAiBOdaRp2kbkKX08letxxz535X64EjfIvizuKduyZ1IMRQ=="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.1.1-beta.2_1710633388199_0.07200872923388557"},"_hasShrinkwrap":false},"1.1.4":{"name":"strcolorize","version":"1.1.4","author":{"name":"seveenxs"},"description":"A library for coloring strings in your terminal.","license":"MIT","main":"lib/index.js","keywords":["ansi","console","terminal","color","colors"],"bugs":{"url":"https://github.com/seveenxs/strcolorize/issues"},"repository":{"type":"git","url":"git+https://github.com/seveenxs/strcolorize.git"},"scripts":{},"devDependencies":{"@types/node":"^20.11.19","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.1.4","gitHead":"de81f14c5de20d9099d0cbc8a1098c99cdaecb96","types":"./lib/index.d.ts","homepage":"https://github.com/seveenxs/strcolorize#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-YP4OEAvjtzgJysm3vlgossIpZ37LKGKj692SjRoIXePYlxJNR2zg7Rx/GQGuBDy9/I05PHUtuREHdmxjyx+98Q==","shasum":"d40343b1244bc8a9fbf5e007e662b6d988019d86","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.1.4.tgz","fileCount":11,"unpackedSize":24783,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB8Qqs1sc8b+ijq7qikf1tWWtW2iXHwSDS9sJeYhNNtqAiEAmAZo84VHJzF+izIiua9eb1NE4DGi3nDgg9Fa7SwEyig="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.1.4_1710634705664_0.11387887223113524"},"_hasShrinkwrap":false},"1.1.5-beta.1":{"name":"strcolorize","version":"1.1.5-beta.1","author":{"name":"seveenxs"},"description":"A library for coloring strings in your terminal.","license":"MIT","main":"lib/index.js","keywords":["ansi","console","terminal","color","colors"],"bugs":{"url":"https://github.com/seveenxs/strcolorize/issues"},"repository":{"type":"git","url":"git+https://github.com/seveenxs/strcolorize.git"},"scripts":{},"devDependencies":{"@types/node":"^20.11.19","ansi-styles":"^6.2.1","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.1.5-beta.1","readme":"# 🖍️ strcolorize\r\nThe **strcolorize** library is a simple and practical tool designed to colorize terminal outputs using **`hexadecimal`** and **`ANSI`** codes. While some libraries modify the string prototype to colorize texts, the operation of **strcolorize** is different. It uses inline formatting to colorize your text.\r\n\r\n> **Inline formatting**\\\r\n> Inline formatting allows adding colors directly within text using specific codes (e.g., **`hexadecimal`** or **`ANSI`**) around desired portions, without altering the string's structure. This method offers flexibility in applying color styles to terminal outputs while preserving the integrity and structure of the original data.\r\n\r\n## 📦 Installation\r\nTo install the library using **npm** or **yarn**\r\n```bash\r\nnpm install strcolorize\r\n```\r\n```bash\r\nyarn install strcolorize\r\n```\r\n\r\n## ❓ How To Usage\r\nTo use this library, you must first [install it](#-installation) in your project. After that, you will see an example below of how to import and use it in your project.\r\n\r\n<img src=\"https://i.postimg.cc/76sZQFC0/3.png\">\r\n\r\n### TERMINAL OUTPUT\r\n\r\n<img src=\"https://i.postimg.cc/4xVMLpK1/Screenshot-211.png\" href=\"Terminal output\">\r\n\r\n## 🔹 Ansi styles\r\n| Names             | Types       |\r\n|-------------------|-------------|\r\n| reset             | modifier    |\r\n| bold              | modifier    |\r\n| italic            | modifier    |\r\n| dim               | modifier    |\r\n| inverse           | modifier    |\r\n| underline         | modifier    |\r\n| hidden            | modifier    |\r\n| strikethrough     | modifier    |\r\n| overline          | modifier    |\r\n| black             | color       |\r\n| red               | color       |\r\n| green             | color       |\r\n| yellow            | color       |\r\n| blue              | color       |\r\n| magenta           | color       |\r\n| cyan              | color       |\r\n| white             | color       |\r\n| blackBright       | color       |\r\n| redBright         | color       |\r\n| greenBright       | color       |\r\n| yellowBright      | color       |\r\n| blueBright        | color       |\r\n| magentaBright     | color       |\r\n| cyanBright        | color       |\r\n| whiteBright       | color       |\r\n| bgBlack           | background  |\r\n| bgRed             | background  |\r\n| bgGreen           | background  |\r\n| bgYellow          | background  |\r\n| bgBlue            | background  |\r\n| bgMagenta         | background  |\r\n| bgCyan            | background  |\r\n| bgWhite           | background  |\r\n| bgBlackBright     | background  |\r\n| bgRedBright       | background  |\r\n| bgGreenBright     | background  |\r\n| bgYellowBright    | background  |\r\n| bgBlueBright      | background  |\r\n| bgMagentaBright   | background  |\r\n| bgCyanBright      | background  |\r\n| bgWhiteBright     | background  |\r\n\r\n## 💖 Contribuition\r\nYour contributions are highly valued! Feel free to enhance this project by opening an [issue](https://github.com/seveenxs/strcolorize/issues) to report any problems or submitting a [pull request](https://github.com/seveenxs/strcolorize/pulls) with your proposed changes.","readmeFilename":"readme.md","gitHead":"de81f14c5de20d9099d0cbc8a1098c99cdaecb96","homepage":"https://github.com/seveenxs/strcolorize#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-2nXeLsNrYCz2YyE6tp+p7jnxnKUhrlvHmUpYEFCN8SaqJ9WZzSsrYRpAYH3p/pEUA0FFhHhvZ6pAfEXNH5iZQg==","shasum":"89e480aee38ae938abd082842795016086ec2e09","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.1.5-beta.1.tgz","fileCount":6,"unpackedSize":21010,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkyJa5BK1s2qQzP3ahp2YYTipVBcdCtHGuBJbFmrMoJQIgUBqppVKZ9C+a+ndAv+G3twYzsQrZpbNUpppEmRslmV0="}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.1.5-beta.1_1710794208073_0.091455302982272"},"_hasShrinkwrap":false},"1.1.6":{"name":"strcolorize","version":"1.1.6","author":{"name":"seveenxs"},"description":"A library for coloring strings in your terminal.","license":"MIT","main":"lib/index.js","keywords":["ansi","console","terminal","color","colors"],"bugs":{"url":"https://github.com/seveenxs/strcolorize/issues"},"repository":{"type":"git","url":"git+https://github.com/seveenxs/strcolorize.git"},"scripts":{},"devDependencies":{"@types/node":"^20.11.19","ansi-styles":"^6.2.1","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.1.6","gitHead":"de81f14c5de20d9099d0cbc8a1098c99cdaecb96","types":"./lib/index.d.ts","homepage":"https://github.com/seveenxs/strcolorize#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-KeOuw+50cYcaSc74ezLgYPDZE+GDCdsOB0/dskngRGGU8cwxVYq4gsJK87adiCiA5Nv/y90p6cIf2+o3oXJyqQ==","shasum":"aa20a3003416b140cc534d69426ef118d919ebb5","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.1.6.tgz","fileCount":9,"unpackedSize":24956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDIw+O9og3vL2I08BMXxVE1+5UGm9wkBlXnxUmR+Lhm8AIhAPKyD8CnNP7arXXauLuNSkIKTyIL4osqC+uFd9gkvNlq"}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.1.6_1710798972220_0.5435165031721441"},"_hasShrinkwrap":false},"1.1.8":{"name":"strcolorize","version":"1.1.8","author":{"name":"seveenxs"},"description":"A library for coloring strings in your terminal.","license":"MIT","main":"lib/index.js","keywords":["ansi","console","terminal","color","colors"],"bugs":{"url":"https://github.com/seveenxs/strcolorize/issues"},"repository":{"type":"git","url":"git+https://github.com/seveenxs/strcolorize.git"},"scripts":{},"devDependencies":{"@types/node":"^20.11.19","ansi-styles":"^6.2.1","tsx":"^4.7.1","typescript":"^5.3.3"},"_id":"strcolorize@1.1.8","gitHead":"6e98f25cd39398935bbd735dc495d1dd44e9ceb0","types":"./lib/index.d.ts","homepage":"https://github.com/seveenxs/strcolorize#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-D+6TeujKbmNXzlKZc7knyfy+IlAxXPaCsNlQtx3uTCMxlvJnqBOyNY+mugypHY7oA537iUqSootqLc6CiSsqtw==","shasum":"6027d0f49af0ba5686ebd31b11c6dd84cf8d34dd","tarball":"https://registry.npmjs.org/strcolorize/-/strcolorize-1.1.8.tgz","fileCount":9,"unpackedSize":24891,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDw1sjYK1G7mXKlDphQdSv7nLfrHWHGiIevvMHNlmXQjQIhAMMRTzjp6tVwUe364kFgSrDvPGZTZ7zVs2NfZ2wBp7S4"}]},"_npmUser":{"name":"neveesx","email":"svnzzinx@gmail.com"},"directories":{},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strcolorize_1.1.8_1710854216647_0.2109067543469647"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-18T05:53:10.295Z","0.0.1":"2024-02-18T05:53:10.440Z","modified":"2024-03-19T13:16:57.302Z","1.0.0":"2024-02-18T05:57:11.165Z","1.0.1":"2024-02-18T06:17:49.522Z","1.0.2":"2024-02-18T15:01:55.144Z","1.0.3":"2024-02-18T18:43:54.523Z","1.0.4":"2024-02-18T19:07:22.424Z","1.0.5-b":"2024-02-26T01:03:09.011Z","1.0.5-c":"2024-02-26T01:04:05.832Z","1.0.5":"2024-02-26T01:43:57.325Z","1.0.6":"2024-02-26T01:44:24.515Z","1.0.7":"2024-02-26T01:56:13.205Z","1.0.8":"2024-03-01T09:39:11.361Z","1.0.9":"2024-03-11T09:40:59.554Z","1.1.0":"2024-03-11T09:41:52.390Z","1.1.0-beta.1":"2024-03-11T09:57:08.556Z","1.1.1":"2024-03-16T23:25:02.357Z","1.1.1-beta.1":"2024-03-16T23:53:59.783Z","1.1.1-beta.2":"2024-03-16T23:56:28.374Z","1.1.2":"2024-03-16T23:58:32.797Z","1.1.3":"2024-03-17T00:15:54.623Z","1.1.4":"2024-03-17T00:18:25.841Z","1.1.5-beta.1":"2024-03-18T20:36:48.263Z","1.1.5-beta.2":"2024-03-18T21:39:31.084Z","1.1.5-beta.3":"2024-03-18T21:53:28.517Z","1.1.5-beta.4":"2024-03-18T21:54:05.329Z","1.1.5":"2024-03-18T21:55:23.719Z","1.1.6":"2024-03-18T21:56:12.367Z","1.1.7":"2024-03-19T13:11:53.261Z","1.1.8":"2024-03-19T13:16:56.799Z"},"maintainers":[{"name":"neveesx","email":"svnzzinx@gmail.com"}],"description":"A library for coloring strings in your terminal.","keywords":["ansi","console","terminal","color","colors"],"author":{"name":"seveenxs"},"license":"MIT","readme":"# 🖍️ strcolorize\r\n**`strcolorize`** is a simple and practical library for terminal output colorization that utilizes **ANSI** and **hexadecimal** codes for its operation. The way **`strcolorize`** operates is different, using **inline formatting** for its functionality.\r\n\r\n> ### Inline Formatting\r\n> Allows adding colors directly to text using codes (**Hexadecimal** and [**ANSI**](#ansi-styles)) around desired portions. This provides a simple way to highlight important information without compromising the text's structure. With **`strcolorize`**, this approach enables precise customization of text colors and styles.\r\n\r\n## 📦 Installation\r\nYou can install this library using [**npm**](https://npmjs.com/) or [**yarn**](https://yarnpkg.com/)\r\n```bash\r\nnpm install strcolorize@latest\r\n```\r\n```bash\r\nyarn install strcolorize@latest\r\n```\r\n\r\n## 📌 How to usage\r\nTo utilize this library, first [install it](#-installation) in your project and then import it into your file like this:\r\n```js\r\n// Importing using es6\r\nimport colorize from 'strcolorize';\r\n\r\n// Importing using commonjs\r\nconst colorize = require('strcolorize');\r\n\r\n// Note: in place of 'colorize' you can set any name you want\r\n```\r\nAfter that, you can use it to colorize your strings like this:\r\n```js\r\n// putting a text in bold and yellow\r\ncolorize('#bold yellow[The sun sets. Stars twinkle. Dreams awaken.\r\n]');\r\n\r\n// you can print to the console using the function itself\r\ncolorize('#bold yellow[The sun sets. Stars twinkle. Dreams awaken.\r\n]', true);\r\n\r\n// There's the possibility of nesting styles\r\ncolorize('#bold[The sun sets. #yellow[Stars twinkle]. Dreams awaken.\r\n]');\r\n\r\n// How to use hexadecimal codes to colorize your strings\r\ncolorize('#bold[The sun sets. #ff0[Stars twinkle]. Dreams awaken.\r\n]');\r\n```\r\n\r\n## 📝 Method\r\n### `colorize(text: string, terminal: boolean = false): string | void`\r\n- `text:` The text to be colorized.\r\n- `terminal:` A boolean flag indicating whether to print the colorized text directly to the terminal.\r\n- `return`: is true, prints the colorized text to the terminal and returns void. Otherwise, returns the colorized text as a string.\r\n\r\n## 💖 Contribuition\r\nYour contributions are highly valued! Feel free to enhance this project by opening an [issue](https://github.com/seveenxs/strcolorize/issues) to report any problems or submitting a [pull request](https://github.com/seveenxs/strcolorize/pulls) with your proposed changes.\r\n\r\n## Ansi Styles\r\n| Names             | Types       | Description |\r\n|-------------------|-------------|-------------|\r\n| reset             | modifier    | Reset the current style |\r\n| bold              | modifier    | Make the text bold |\r\n| italic            | modifier    | Make the text italic |\r\n| dim               | modifier    | Make the text have lower opacity |\r\n| inverse           | modifier    | Invert background and foreground colors |\r\n| underline         | modifier    | Put a horizontal line below the text |\r\n| hidden            | modifier    | Print the text but make it invisible |\r\n| strikethrough     | modifier    | Puts a horizontal line through the center of the text |\r\n| overline          | modifier    | Put a horizontal line above the text |\r\n| black             | color       | Make the text turn black |\r\n| red               | color       | Make the text turn red |\r\n| green             | color       | Make the text turn green |\r\n| yellow            | color       | Make the text turn yellow |\r\n| blue              | color       | Make the text turn blue |\r\n| magenta           | color       | Make the text turn magenta |\r\n| cyan              | color       | Make the text turn cyan |\r\n| white             | color       | Make the text turn white |\r\n| blackBright       | color       | Make the text turn black bright |\r\n| redBright         | color       | Make the text turn red bright |\r\n| greenBright       | color       | Make the text turn green bright |\r\n| yellowBright      | color       | Make the text turn yellow bright |\r\n| blueBright        | color       | Make the text turn blue bright |\r\n| magentaBright     | color       | Make the text turn magenta bright |\r\n| cyanBright        | color       | Make the text turn cyan bright |\r\n| whiteBright       | color       | Make the text turn white bright |\r\n| bgBlack           | background  | Make the background of the text black |\r\n| bgRed             | background  | Make the background of the text red |\r\n| bgGreen           | background  | Make the background of the text green |\r\n| bgYellow          | background  | Make the background of the text yellow |\r\n| bgBlue            | background  | Make the background of the text blue |\r\n| bgMagenta         | background  | Make the background of the text magenta |\r\n| bgCyan            | background  | Make the background of the text cyan |\r\n| bgWhite           | background  | Make the background of the text white |\r\n| bgBlackBright     | background  | Make the background of the text black bright |\r\n| bgRedBright       | background  | Make the background of the text red bright |\r\n| bgGreenBright     | background  | Make the background of the text green bright |\r\n| bgYellowBright    | background  | Make the background of the text yellow bright |\r\n| bgBlueBright      | background  | Make the background of the text blue bright |\r\n| bgMagentaBright   | background  | Make the background of the text magenta bright |\r\n| bgCyanBright      | background  | Make the background of the text cyan bright |\r\n| bgWhiteBright     | background  | Make the background of the text white bright |","readmeFilename":"readme.md","homepage":"https://github.com/seveenxs/strcolorize#readme","repository":{"type":"git","url":"git+https://github.com/seveenxs/strcolorize.git"},"bugs":{"url":"https://github.com/seveenxs/strcolorize/issues"}}