chalk 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/package.json +12 -4
  3. package/readme.md +3 -2
package/index.js CHANGED
@@ -36,7 +36,7 @@ var styles = (function () {
36
36
  var proto = defineProps(function chalk() {}, styles);
37
37
 
38
38
  function build(_styles) {
39
- var builder = function builder() {
39
+ var builder = function () {
40
40
  return applyStyle.apply(builder, arguments);
41
41
  };
42
42
 
@@ -44,7 +44,7 @@ function build(_styles) {
44
44
  builder.enabled = this.enabled;
45
45
  // __proto__ is used because we must return a function, but there is
46
46
  // no way to create a function with a different prototype.
47
- /*eslint no-proto: 0 */
47
+ /* eslint-disable no-proto */
48
48
  builder.__proto__ = proto;
49
49
 
50
50
  return builder;
package/package.json CHANGED
@@ -1,18 +1,19 @@
1
1
  {
2
2
  "name": "chalk",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Terminal string styling done right. Much color.",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/chalk",
7
7
  "maintainers": [
8
8
  "Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)",
9
- "Joshua Appelman <jappelman@xebia.com> (jbnicolai.com)"
9
+ "Joshua Appelman <jappelman@xebia.com> (jbnicolai.com)",
10
+ "JD Ballard <i.am.qix@gmail.com> (github.com/qix-)"
10
11
  ],
11
12
  "engines": {
12
13
  "node": ">=0.10.0"
13
14
  },
14
15
  "scripts": {
15
- "test": "mocha",
16
+ "test": "xo && mocha",
16
17
  "bench": "matcha benchmark.js",
17
18
  "coverage": "nyc npm test && nyc report",
18
19
  "coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
@@ -57,6 +58,13 @@
57
58
  "nyc": "^3.0.0",
58
59
  "require-uncached": "^1.0.2",
59
60
  "resolve-from": "^1.0.0",
60
- "semver": "^4.3.3"
61
+ "semver": "^4.3.3",
62
+ "xo": "*"
63
+ },
64
+ "xo": {
65
+ "envs": [
66
+ "node",
67
+ "mocha"
68
+ ]
61
69
  }
62
70
  }
package/readme.md CHANGED
@@ -30,7 +30,7 @@
30
30
  - Clean and focused
31
31
  - Auto-detects color support
32
32
  - Actively maintained
33
- - [Used by ~4000 modules](https://www.npmjs.com/browse/depended/chalk) as of May 24, 2015
33
+ - [Used by ~4500 modules](https://www.npmjs.com/browse/depended/chalk) as of July 15, 2015
34
34
 
35
35
 
36
36
  ## Install
@@ -189,7 +189,7 @@ if (!chalk.supportsColor) {
189
189
 
190
190
  ## 256-colors
191
191
 
192
- Chalk does not support support anything other than the base eight colors, which guarantees it will work on all terminals and systems. Some terminals, specifically `xterm` compliant ones, will support the full range of 8-bit colors. For this the lower level [ansi-256-colors](https://github.com/jbnicolai/ansi-256-colors) package can be used.
192
+ Chalk does not support anything other than the base eight colors, which guarantees it will work on all terminals and systems. Some terminals, specifically `xterm` compliant ones, will support the full range of 8-bit colors. For this the lower level [ansi-256-colors](https://github.com/jbnicolai/ansi-256-colors) package can be used.
193
193
 
194
194
 
195
195
  ## Windows
@@ -205,6 +205,7 @@ If you're on Windows, do yourself a favor and use [`cmder`](http://bliker.github
205
205
  - [strip-ansi](https://github.com/chalk/strip-ansi) - Strip ANSI escape codes
206
206
  - [has-ansi](https://github.com/chalk/has-ansi) - Check if a string has ANSI escape codes
207
207
  - [ansi-regex](https://github.com/chalk/ansi-regex) - Regular expression for matching ANSI escape codes
208
+ - [wrap-ansi](https://github.com/chalk/wrap-ansi) - Wordwrap a string with ANSI escape codes
208
209
 
209
210
 
210
211
  ## License