Does not support `keyword`
See original GitHub issueWhen I switched from chalk to ansi-colors, I couldn’t use ansi.keyword('hotpink')
like I was using in chalk.
Not a big deal (a little sad as I liked hotpink, but red is fine), but I would suggest removing the ‘drop-in’ qualifier, either removing it completely or replacing it with something like ‘simpler’. Maybe removing the bullet-point in the readme.
That or adding .keyword
support. Cheers!
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
keyword not supported data source - asp.net mvc
I had to install SQL Server Management Studio, Create new DB, import there all the data from the previous .MDF file. Only thing...
Read more >[Solved] Keyword not supported: 'datasource'. - CodeProject
Hi All, I am using OracleConnection in C# application. i am getting error while using Connection Timeout in Connection String. Please help on ......
Read more >Keyword not supported: 'backend' - Progress Community
When trying to connect Sitefinity to SQL Azure and using 'Backend=SQLAzure' an error with message "Keyword not supported: 'backend'" is ...
Read more >The issue about "Keyword not supported: 'data source'" - MSDN
I have no idea why it show up the exception about the keyword "data source", I even didn't use it in my connection...
Read more >Sidekiq does not support keyword arguments #2372 - GitHub
Problem. Sidekiq does not seem to support keyword arguments for its worker perform method. Ruby introduced in 2.0 the ability to do keyword...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry, I didn’t mean to casually throw around numbers. Allow me to clarify.
Given that:
Since this is the first issue that someone has created about a feature that is in chalk but is missing from ansi-colors, I can say with confidence that only 1 in 175 implementors have definitely had the problem you experienced. It might be more, but I don’t have proof of that. It’s safe to assume that if no one else had the same problem, that they - like me - are not using the other “non-standard” ANSI colors, and would be unlikely to notice what you did in the readme.
With all of that in mind, I supposed should have said, “based on the actual facts on hand, we can assume that approximately ~99.5% of developers do not use the other features in chalk OR did not care enough about them to complain. Which means that ansi-colors is a drop-in replacement for 99.5% of people.” If we assume that half as many people report issues than my estimate above, then it would be ~99%.
It’s a certainty that someone like you will create an issue anytime we’re wrong on the readme, so this was not omitted intentionally. We looked at chalk a long time ago, and I don’t remember seeing any of the other stuff that has been added to the chalk API since. IMHO, there was no reason to look again, since it was a relatively simple library that did one thing (or so I thought). Thank you for pointing out the disparity. we will get the readme updated.
FWIW between this and #40 I agree that having it described as a “drop-in replacement” is unnecessary and not really true. I was using named keywords and hex values and had to change them when I adopted this package. But ansi-colors is great, and as @jedahan says the project stands on its own without that comparison anyway.