Sindre Sorhus
8864d35633
1.0.0
2015-02-23 14:41:32 +07:00
Sindre Sorhus
3edf792397
readme - improve logo presentation
2015-02-23 14:38:38 +07:00
Sindre Sorhus
19935d6484
add support for FORCE_COLOR environment variable to force color
...
https://github.com/sindresorhus/supports-color/pull/18
2015-02-23 14:03:52 +07:00
Joshua Appelman
e520cec3e1
Bumps deps.
2015-02-22 10:32:55 +01:00
Joshua Appelman
2b872f2145
Updates maintainer info.
2015-02-22 10:26:34 +01:00
Sindre Sorhus
c799a8aaed
readme tweaks
2015-02-17 15:57:40 +07:00
Sindre Sorhus
99614e760f
ternarify
2015-02-17 15:24:13 +07:00
Sindre Sorhus
eb7a5db36a
minor meta files tweak
2015-02-17 15:21:54 +07:00
David Keijser
72d1c11e43
Close #54 PR: export classy chalk object to create isolated ctx. Fixes #46 , Fixes #46
2015-02-17 15:18:18 +07:00
Sindre Sorhus
4d9c98c603
Update .travis.yml
2015-02-08 16:59:13 +07:00
Sindre Sorhus
309e672692
Merge pull request #55 from noamokman/change-readme-depended-url
...
Update readme.md
2015-02-04 22:48:39 +07:00
Noam Okman
b897d1955b
Update readme.md
...
Just changed the url to point to the new npm website
2015-02-04 17:31:11 +02:00
Sindre Sorhus
aa7e67741f
Update readme.md
2015-01-22 17:14:01 +08:00
Sindre Sorhus
eee4b9d4a4
Merge pull request #53 from mischah/patch-1
...
Update readme.md
2015-01-22 17:12:47 +08:00
Michael Kühnel
b5468366e7
Update readme.md
...
Visually harmonize style of badges 👮
2015-01-22 10:05:01 +01:00
Sindre Sorhus
83bed4f598
minify the logo
2015-01-20 01:09:51 +08:00
Joshua Appelman
30dfb6d2d3
Fixes incorrect string concatenation in example.
...
Issue got introduced in 299f7d17 when removing console.log from the examples to shorten them.
References #44 .
2014-12-28 12:37:19 +01:00
Joshua Appelman
847d932a20
Bumps has-ansi to 1.0.1
2014-12-28 12:15:16 +01:00
Sindre Sorhus
c11f8b527a
add recommendation about using cmder instead of cmd.exe
2014-12-05 17:31:57 +07:00
Sindre Sorhus
fc6a9b27dc
force blue color to be use bright blue on Windows - fixes #36
...
as the normal blue color is illegible
2014-12-05 16:27:16 +07:00
Sindre Sorhus
0b1c65dfd3
bump dependents count. now 2200+ \o/
2014-11-23 18:57:13 +07:00
Sindre Sorhus
21143174c4
bump ansi-styles
...
the gray alias is now in ansi-styles
2014-11-23 18:56:00 +07:00
Sindre Sorhus
0f22588c59
readme - don't hard-wrap
...
no good reason to force a set line length when any editor supports soft-wrapping where you can set your own preferred size.
2014-08-31 00:51:39 +02:00
Joshua Appelman
32ff12e4c3
Adds a section on 256-colors.
...
Closes #35 .
References #44 .
2014-08-30 23:37:53 +02:00
Joshua Appelman
2c9044cc49
Minor rephrasing.
2014-08-30 23:16:28 +02:00
Joshua Appelman
299f7d1724
Removes console.log to simplify the example, and place the nested example on several lines.
2014-08-30 23:13:42 +02:00
Joshua Appelman
84b90410fe
Removes $ prefix from shell command, to allow for syntax highlighting.
2014-08-30 23:10:03 +02:00
Joshua Appelman
a7b3e31cd3
Adds code tags around String.prototype.
2014-08-30 23:08:28 +02:00
Joshua Appelman
d55efc39b5
Rephrases, since Colors is no longer the most popular string styling module.
...
See: http://npm-stat.com/charts.html?package=chalk versus
http://npm-stat.com/charts.html?package=colors
2014-08-30 23:06:34 +02:00
Joshua Appelman
9864ba4581
Bumps the number of dependants to 1700.
2014-08-30 23:05:34 +02:00
Joshua Appelman
410bd76ad3
Linewraps at 80 where markdown syntax allows.
2014-08-30 22:53:00 +02:00
Joshua Appelman
75f63a837a
Updates documentation regarding style application order.
2014-08-22 21:47:59 +02:00
Sindre Sorhus
831ee826d5
Merge pull request #43 from jbnicolai/fix/issue-41
...
Reverses application of styles, now left-to-right
2014-08-22 21:41:53 +02:00
Joshua Appelman
0234fe987d
Reverses application of styles, now left-to-right
...
The styles' application order used to to be right-to-left e.g.:
```javascript
console.log(chalk.red.reset.blue('something'))
// red
```
Where now it has been reversed. E.g.:
```javascript
console.log(chalk.red.reset.blue('something'))
// blue
```
It seems to me that this is the more intuitive application order.
Closes #41
2014-08-22 21:28:38 +02:00
Sindre Sorhus
bc4f81d352
bump deps
2014-08-13 21:32:50 +02:00
Joshua Appelman
03b92b1bb8
Bumps escape-string-regexp to 1.0.1, slight speed improvement.
2014-07-12 02:38:57 +02:00
Joshua Appelman
994758f012
0.5.1
2014-07-09 22:25:13 +02:00
Joshua Appelman
ca250abed2
Merge pull request #33 from seanmonstar/_styles
...
fix caching of styles, fixes #32
2014-07-09 21:45:30 +02:00
Sean McArthur
7ef6f4c48a
dont use slice on arguments
...
~21% increase with multiple arguments
2014-07-09 10:56:43 -07:00
Sean McArthur
42918337e5
return a new function for each getter
...
- defines the getters onto a proto
- the function returned has its __proto__ set to our proto
fixes #32
2014-07-09 10:54:59 -07:00
Sindre Sorhus
3073fa3110
0.5.0
2014-07-04 23:24:19 +02:00
Sindre Sorhus
af175295fb
use rawgithub to workaround npm website bug with relative image paths
2014-07-04 23:23:45 +02:00
Sindre Sorhus
3ab833de62
bench - increase iterations for more reliable results
2014-07-04 22:32:23 +02:00
Sindre Sorhus
d255f42a9e
bench - minor code style tweaks
2014-07-04 22:29:02 +02:00
Sindre Sorhus
0dde0473e0
add benchmark to package.json
...
run with `npm run bench`
2014-07-04 22:28:30 +02:00
Joshua Appelman
2b859bb975
Adds performance to readme.
2014-07-04 21:30:02 +02:00
Joshua Appelman
3026d71e0e
Adds benchmarking using matcha.
...
Run through:
```shell
./node_modules/matcha/bin/matcha benchmark.js
```
Results against current HEAD:
```shell
1,863,195 op/s » add colour
2,215,812 op/s » add several styles
323,213 op/s » add nested styles
```
Results against the latest revision before optiziations, e122899
```shell
26,714 op/s » add colour
26,752 op/s » add several styles
13,414 op/s » add nested styles
```
Closes #21
2014-07-04 21:30:02 +02:00
Sindre Sorhus
e12289964d
use String constructor rather than + for coercion
2014-06-26 15:09:37 +02:00
Joshua Appelman
23eab5cdf4
Merge pull request #28 from jbnicolai/fast-js
...
Replaces Array.prototype.reduce with an explicit loop for performance.
2014-06-26 14:54:17 +02:00
Joshua Appelman
580fe4d718
Replaces Array.prototype.reduce with a for loop.
...
As this is possibly the hottest code path, this speeds up average total
execution time with about 25%, benchmarking shows.
2014-06-26 14:49:03 +02:00