Title: Terminal colors built-in to Node · Issue #42770 · nodejs/node · GitHub
Open Graph Title: Terminal colors built-in to Node · Issue #42770 · nodejs/node
X Title: Terminal colors built-in to Node · Issue #42770 · nodejs/node
Description: What is the problem this feature will solve? Having to download external libraries like chalk, colors, etc. This also aids the scenario where programmers are without package managers. Sometimes, one standalone file in JavaScript is best....
Open Graph Description: What is the problem this feature will solve? Having to download external libraries like chalk, colors, etc. This also aids the scenario where programmers are without package managers. Sometimes, on...
X Description: What is the problem this feature will solve? Having to download external libraries like chalk, colors, etc. This also aids the scenario where programmers are without package managers. Sometimes, on...
Opengraph URL: https://github.com/nodejs/node/issues/42770
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Terminal colors built-in to Node","articleBody":"### What is the problem this feature will solve?\n\nHaving to download external libraries like chalk, colors, etc.\r\nThis also aids the scenario where programmers are without package managers. Sometimes, one standalone file in JavaScript is best. Implementing this feature would aid those individuals, and also reduce the bundle size because no package managers would have to be used for a simple JavaScript program.\r\n\r\nUsing Yarn or NPM makes a `node_modules` folder, which is especially large by only adding one dependency just for terminal colors.\r\n\r\nHopefully, you take this issue into consideration, and I would be happy to help implement a such feature.\n\n### What is the feature you are proposing to solve the problem?\n\nAn enumeration of ANSI escape codes for users to easily access to change the color of the terminal.\r\n\r\nExample usage of this would be:\r\n```JS\r\nconsole.log(`${Colors.PURPLE}${Colors.ITALIC}This is italicized purple text`\r\n```\n\n### What alternatives have you considered?\n\nOne alternative (already exists) would be to use a package manager like Yarn or NPM to download a package like 'chalk' or 'colors'.\r\nHowever, Node.JS users not using package managers would be unable to accomplish this.","author":{"url":"https://github.com/Exortions","@type":"Person","name":"Exortions"},"datePublished":"2022-04-18T04:15:02Z","url":"https://github.com/nodejs/node/issues/42770"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ee866a7d-9022-812d-6280-7fa5638bf32d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5B4:2BD59E:77E473:A28E39:6AED2C9A |
| html-safe-nonce | 9eff573599c161d9ef319fd52a17a79814b5ecc7c39e7c2c981d0359919c8aa7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUI0OjJCRDU5RTo3N0U0NzM6QTI4RTM5OjZBRUQyQzlBIiwidmlzaXRvcl9pZCI6IjQ0MDM1OTA4NTkzNzYwMTY5MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3dfcfc5bf872ac39ce8c5068c96112379c13d0509fa5af915e63068b9a99f3c1 |
| hovercard-subject-tag | issue:1206639943 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/42770/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8f6a5d83378c61f60b724a32220bef4ef983706b550f139aa6e7e4d0b4af0ae7/nodejs/node/issues/42770 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8f6a5d83378c61f60b724a32220bef4ef983706b550f139aa6e7e4d0b4af0ae7/nodejs/node/issues/42770 |
| og:image:alt | What is the problem this feature will solve? Having to download external libraries like chalk, colors, etc. This also aids the scenario where programmers are without package managers. Sometimes, on... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Exortions |
| hostname | github.com |
| expected-hostname | github.com |
| None | e51d0b7b5ab34b1688c05b54c3ed17b8658b2fa9bca973a9c740683ccb12cf4a |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 59ebb7b901cc154ecc179a44f266fcf69f343b30 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width