Comments (2)
Adding the ability to do this is easy, the question is what does the API look like.
For multi-style themes, I could do: red.bold
as the value and then just split the string on the .
For background color, what would the API call look like? How do you specify if if color should be applied as BG color?
"foo".redBG
"foo".background('red')
"foo".bg('red')
Lots of options.
from colors.js.
Now added
from colors.js.
Related Issues (20)
- nice
- Move version to 1.4.74 for liberty HOT 1
- You are damaging the open source culture HOT 22
- ε°±θΏοΌ HOT 2
- Faker.js problem HOT 2
- bla HOT 2
- burn babylon HOT 1
- Use TRUE Open Source ANSI Styling Lib - ANSIS HOT 1
- JUST GIVE THEM SOME MONEY! HOT 3
- Do you know this? HOT 5
- Bendiciones lapepo HOT 1
- Elvis has left the building HOT 3
- Final Status Update: colors has moved to @colors/colors HOT 8
- String extension not working in NodeJs VM
- Wrong Spelling HOT 4
- [Bug] Infinite loop in colors.js package to be removed. HOT 1
- Vulnerable dependencies (indirect security issues)
- rides
- Doesn't export `/safe` in package.json
- FORCE_COLOR doesn't seem to work/apply to String.prototype injection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from colors.js.