stylus-source 0.31.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. checksums.yaml +7 -0
  2. data/VERSION +1 -1
  3. data/vendor/lib/nodes/unit.js +1 -1
  4. data/vendor/lib/parser.js +0 -1
  5. data/vendor/lib/renderer.js +2 -0
  6. data/vendor/lib/visitor/compiler.js +6 -0
  7. data/vendor/node_modules/cssom/README.mdown +34 -0
  8. data/vendor/node_modules/cssom/package.json +2 -1
  9. data/vendor/node_modules/debug/History.md +15 -0
  10. data/vendor/node_modules/debug/Readme.md +3 -18
  11. data/vendor/node_modules/debug/component.json +9 -0
  12. data/vendor/node_modules/debug/debug.js +10 -2
  13. data/vendor/node_modules/debug/index.js +5 -2
  14. data/vendor/node_modules/debug/lib/debug.js +5 -6
  15. data/vendor/node_modules/debug/package.json +11 -6
  16. data/vendor/node_modules/mkdirp/package.json +6 -9
  17. data/vendor/node_modules/mkdirp/{README.markdown → readme.markdown} +26 -24
  18. data/vendor/node_modules/mocha/History.md +140 -58
  19. data/vendor/node_modules/mocha/LICENSE +2 -2
  20. data/vendor/node_modules/mocha/Makefile +20 -5
  21. data/vendor/node_modules/mocha/Readme.md +110 -22
  22. data/vendor/node_modules/mocha/_mocha.js +574 -182
  23. data/vendor/node_modules/mocha/bin/_mocha +39 -22
  24. data/vendor/node_modules/mocha/bin/mocha +6 -2
  25. data/vendor/node_modules/mocha/component.json +16 -0
  26. data/vendor/node_modules/mocha/lib/browser/debug.js +1 -2
  27. data/vendor/node_modules/mocha/lib/browser/diff.js +287 -0
  28. data/vendor/node_modules/mocha/lib/browser/tty.js +7 -2
  29. data/vendor/node_modules/mocha/lib/hook.js +0 -1
  30. data/vendor/node_modules/mocha/lib/interfaces/bdd.js +3 -3
  31. data/vendor/node_modules/mocha/lib/interfaces/exports.js +5 -5
  32. data/vendor/node_modules/mocha/lib/interfaces/qunit.js +38 -9
  33. data/vendor/node_modules/mocha/lib/interfaces/tdd.js +15 -2
  34. data/vendor/node_modules/mocha/lib/mocha.js +20 -4
  35. data/vendor/node_modules/mocha/lib/reporters/base.js +57 -37
  36. data/vendor/node_modules/mocha/lib/reporters/html.js +2 -4
  37. data/vendor/node_modules/mocha/lib/reporters/json-stream.js +4 -14
  38. data/vendor/node_modules/mocha/lib/reporters/json.js +9 -19
  39. data/vendor/node_modules/mocha/lib/reporters/markdown.js +0 -1
  40. data/vendor/node_modules/mocha/lib/reporters/min.js +2 -2
  41. data/vendor/node_modules/mocha/lib/reporters/nyan.js +33 -39
  42. data/vendor/node_modules/mocha/lib/reporters/tap.js +12 -2
  43. data/vendor/node_modules/mocha/lib/reporters/templates/coverage.jade +3 -3
  44. data/vendor/node_modules/mocha/lib/reporters/templates/menu.jade +1 -1
  45. data/vendor/node_modules/mocha/lib/reporters/xunit.js +4 -4
  46. data/vendor/node_modules/mocha/lib/runnable.js +7 -9
  47. data/vendor/node_modules/mocha/lib/runner.js +24 -9
  48. data/vendor/node_modules/mocha/lib/template.html +2 -1
  49. data/vendor/node_modules/mocha/lib/utils.js +3 -3
  50. data/vendor/node_modules/mocha/mocha.css +37 -13
  51. data/vendor/node_modules/mocha/mocha.js +661 -253
  52. data/vendor/node_modules/mocha/node_modules/commander/package.json +5 -1
  53. data/vendor/node_modules/mocha/node_modules/diff/package.json +5 -1
  54. data/vendor/node_modules/mocha/node_modules/glob/LICENSE +27 -0
  55. data/vendor/node_modules/mocha/node_modules/glob/README.md +250 -0
  56. data/vendor/node_modules/mocha/node_modules/glob/examples/g.js +9 -0
  57. data/vendor/node_modules/mocha/node_modules/glob/examples/usr-local.js +9 -0
  58. data/vendor/node_modules/mocha/node_modules/glob/glob.js +675 -0
  59. data/vendor/node_modules/mocha/node_modules/glob/node_modules/graceful-fs/LICENSE +27 -0
  60. data/vendor/node_modules/mocha/node_modules/glob/node_modules/graceful-fs/README.md +33 -0
  61. data/vendor/node_modules/mocha/node_modules/glob/node_modules/graceful-fs/graceful-fs.js +442 -0
  62. data/vendor/node_modules/mocha/node_modules/glob/node_modules/graceful-fs/package.json +49 -0
  63. data/vendor/node_modules/mocha/node_modules/glob/node_modules/graceful-fs/test/open.js +46 -0
  64. data/vendor/node_modules/mocha/node_modules/glob/node_modules/graceful-fs/test/ulimit.js +158 -0
  65. data/vendor/node_modules/mocha/node_modules/glob/node_modules/inherits/README.md +51 -0
  66. data/vendor/node_modules/mocha/node_modules/glob/node_modules/inherits/inherits.js +29 -0
  67. data/vendor/node_modules/mocha/node_modules/glob/node_modules/inherits/package.json +26 -0
  68. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/LICENSE +23 -0
  69. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/README.md +218 -0
  70. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/minimatch.js +1079 -0
  71. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/AUTHORS +8 -0
  72. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/LICENSE +23 -0
  73. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/README.md +97 -0
  74. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/lib/lru-cache.js +257 -0
  75. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/package.json +59 -0
  76. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/s.js +25 -0
  77. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/test/basic.js +329 -0
  78. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/test/foreach.js +52 -0
  79. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js +50 -0
  80. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund/LICENSE +27 -0
  81. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund/README.md +53 -0
  82. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund/bench.js +283 -0
  83. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund/package.json +38 -0
  84. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund/sigmund.js +39 -0
  85. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/node_modules/sigmund/test/basic.js +24 -0
  86. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/package.json +36 -0
  87. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/test/basic.js +399 -0
  88. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/test/brace-expand.js +33 -0
  89. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/test/caching.js +14 -0
  90. data/vendor/node_modules/mocha/node_modules/glob/node_modules/minimatch/test/defaults.js +274 -0
  91. data/vendor/node_modules/mocha/node_modules/glob/package.json +40 -0
  92. data/vendor/node_modules/mocha/node_modules/glob/test/00-setup.js +176 -0
  93. data/vendor/node_modules/mocha/node_modules/glob/test/bash-comparison.js +63 -0
  94. data/vendor/node_modules/mocha/node_modules/glob/test/bash-results.json +350 -0
  95. data/vendor/node_modules/mocha/node_modules/glob/test/cwd-test.js +55 -0
  96. data/vendor/node_modules/mocha/node_modules/glob/test/globstar-match.js +19 -0
  97. data/vendor/node_modules/mocha/node_modules/glob/test/mark.js +74 -0
  98. data/vendor/node_modules/mocha/node_modules/glob/test/nocase-nomagic.js +113 -0
  99. data/vendor/node_modules/mocha/node_modules/glob/test/pause-resume.js +73 -0
  100. data/vendor/node_modules/mocha/node_modules/glob/test/root-nomount.js +39 -0
  101. data/vendor/node_modules/mocha/node_modules/glob/test/root.js +46 -0
  102. data/vendor/node_modules/mocha/node_modules/glob/test/stat.js +32 -0
  103. data/vendor/node_modules/mocha/node_modules/glob/test/zz-cleanup.js +11 -0
  104. data/vendor/node_modules/mocha/node_modules/growl/History.md +5 -0
  105. data/vendor/node_modules/mocha/node_modules/growl/lib/growl.js +2 -0
  106. data/vendor/node_modules/mocha/node_modules/growl/package.json +7 -3
  107. data/vendor/node_modules/mocha/node_modules/jade/node_modules/mkdirp/package.json +5 -1
  108. data/vendor/node_modules/mocha/node_modules/jade/package.json +5 -1
  109. data/vendor/node_modules/mocha/node_modules/ms/package.json +5 -1
  110. data/vendor/node_modules/mocha/package.json +13 -7
  111. data/vendor/node_modules/mocha/test.js +10 -21
  112. data/vendor/node_modules/should/History.md +5 -0
  113. data/vendor/node_modules/should/Readme.md +172 -172
  114. data/vendor/node_modules/should/lib/eql.js +2 -0
  115. data/vendor/node_modules/should/lib/should.js +4 -3
  116. data/vendor/node_modules/should/package.json +8 -4
  117. data/vendor/node_modules/should/test/should.test.js +27 -0
  118. data/vendor/package.json +1 -1
  119. metadata +61 -35
  120. data/vendor/node_modules/debug/Makefile +0 -4
  121. data/vendor/node_modules/debug/debug.component.js +0 -120
  122. data/vendor/node_modules/debug/head.js +0 -1
  123. data/vendor/node_modules/debug/tail.js +0 -4
  124. data/vendor/node_modules/mocha/node_modules/mkdirp/LICENSE +0 -21
  125. data/vendor/node_modules/mocha/node_modules/mkdirp/README.markdown +0 -61
  126. data/vendor/node_modules/mocha/node_modules/mkdirp/examples/pow.js +0 -6
  127. data/vendor/node_modules/mocha/node_modules/mkdirp/examples/pow.js.orig +0 -6
  128. data/vendor/node_modules/mocha/node_modules/mkdirp/examples/pow.js.rej +0 -19
  129. data/vendor/node_modules/mocha/node_modules/mkdirp/index.js +0 -94
  130. data/vendor/node_modules/mocha/node_modules/mkdirp/package.json +0 -33
  131. data/vendor/node_modules/mocha/node_modules/mkdirp/test/chmod.js +0 -38
  132. data/vendor/node_modules/mocha/node_modules/mkdirp/test/clobber.js +0 -37
  133. data/vendor/node_modules/mocha/node_modules/mkdirp/test/mkdirp.js +0 -28
  134. data/vendor/node_modules/mocha/node_modules/mkdirp/test/perm.js +0 -32
  135. data/vendor/node_modules/mocha/node_modules/mkdirp/test/perm_sync.js +0 -39
  136. data/vendor/node_modules/mocha/node_modules/mkdirp/test/race.js +0 -41
  137. data/vendor/node_modules/mocha/node_modules/mkdirp/test/rel.js +0 -32
  138. data/vendor/node_modules/mocha/node_modules/mkdirp/test/return.js +0 -25
  139. data/vendor/node_modules/mocha/node_modules/mkdirp/test/return_sync.js +0 -24
  140. data/vendor/node_modules/mocha/node_modules/mkdirp/test/root.js +0 -18
  141. data/vendor/node_modules/mocha/node_modules/mkdirp/test/sync.js +0 -32
  142. data/vendor/node_modules/mocha/node_modules/mkdirp/test/umask.js +0 -28
  143. data/vendor/node_modules/mocha/node_modules/mkdirp/test/umask_sync.js +0 -32
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8b98da82569227060f82acf10b8af1b3427276f0
4
+ data.tar.gz: 31507c07dc7862a65fb285ef3da889015599a8f0
5
+ SHA512:
6
+ metadata.gz: 7e5a3bcf92eb201067d16625bd40803ad03920a956046aa773c70c637a6743a9e4c4121da91ae8a6b54101dbd472f2fbe418577c06e314e8a50e3849c98158c5
7
+ data.tar.gz: e216cb09411b14a7575fcdf7ccc80656b8a9b2a3d29fa0c406e5a7c628d36d9f9a327e29546366f3d6fdedfaa06a542f16690f46ca8dedcd32ebae29fb87307c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.31.0
1
+ 0.32.0
@@ -95,7 +95,7 @@ Unit.prototype.operate = function(op, right){
95
95
  right = right.first;
96
96
  // percentages
97
97
  if (('-' == op || '+' == op) && '%' == right.type) {
98
- right.val = this.val * (right.val / 100);
98
+ right = new Unit(this.val * (right.val / 100), '%');
99
99
  } else {
100
100
  right = this.coerce(right);
101
101
  }
data/vendor/lib/parser.js CHANGED
@@ -1113,7 +1113,6 @@ Parser.prototype = {
1113
1113
  group.push(new nodes.Selector(arr));
1114
1114
  } while (this.accept(',') || this.accept('newline'));
1115
1115
 
1116
- this.lexer.allowComments = false;
1117
1116
  this.state.push('selector');
1118
1117
  group.block = this.block(group);
1119
1118
  this.state.pop();
@@ -77,12 +77,14 @@ Renderer.prototype.render = function(fn){
77
77
  , css = compiler.compile();
78
78
 
79
79
  this.emit('end', css);
80
+ if (!fn) return css;
80
81
  fn(null, css);
81
82
  } catch (err) {
82
83
  var options = {};
83
84
  options.input = err.input || this.str;
84
85
  options.filename = err.filename || this.options.filename;
85
86
  options.lineno = err.lineno || parser.lexer.lineno;
87
+ if (!fn) throw utils.formatException(err, options);
86
88
  fn(utils.formatException(err, options));
87
89
  }
88
90
  };
@@ -137,6 +137,12 @@ Compiler.prototype.visitBlock = function(block){
137
137
  case 'fontface':
138
138
  this.visit(node);
139
139
  break;
140
+ case 'comment':
141
+ // only show comments inside when outside of scope and unsuppressed
142
+ if (!block.scope && !node.suppress) {
143
+ this.buf += this.visit(node) + '\n';
144
+ }
145
+ break;
140
146
  case 'literal':
141
147
  this.buf += this.visit(node) + '\n';
142
148
  break;
@@ -0,0 +1,34 @@
1
+ # CSSOM
2
+
3
+ CSSOM.js is a CSS parser written in pure JavaScript. It also a partial implementation of [CSS Object Model](http://dev.w3.org/csswg/cssom/).
4
+
5
+ CSSOM.parse("body {color: black}")
6
+ -> {
7
+ cssRules: [
8
+ {
9
+ selectorText: "body",
10
+ style: {
11
+ 0: "color",
12
+ color: "black",
13
+ length: 1
14
+ }
15
+ }
16
+ ]
17
+ }
18
+
19
+
20
+ ## [Parser demo](http://nv.github.com/CSSOM/docs/parse.html)
21
+
22
+ Works well in Google Chrome 6+, Safari 5+, Firefox 3.6+, Opera 10.63+.
23
+ Doesn't work in IE < 9 because of unsupported getters/setters.
24
+
25
+ To use CSSOM.js in the browser you might want to build a one-file version with [Jake](http://github.com/mde/node-jake):
26
+
27
+ ➤ jake
28
+ build/CSSOM.js is done
29
+
30
+ To use it with Node.js:
31
+
32
+ npm install cssom
33
+
34
+ ## [Specs](http://nv.github.com/CSSOM/spec/)
@@ -39,7 +39,8 @@
39
39
  "scripts": {
40
40
  "prepublish": "jake lib/index.js"
41
41
  },
42
+ "readme": "# CSSOM\n\nCSSOM.js is a CSS parser written in pure JavaScript. It also a partial implementation of [CSS Object Model](http://dev.w3.org/csswg/cssom/). \n\n CSSOM.parse(\"body {color: black}\")\n -> {\n cssRules: [\n {\n selectorText: \"body\",\n style: {\n 0: \"color\",\n color: \"black\",\n length: 1\n }\n }\n ]\n }\n\n\n## [Parser demo](http://nv.github.com/CSSOM/docs/parse.html)\n\nWorks well in Google Chrome 6+, Safari 5+, Firefox 3.6+, Opera 10.63+.\nDoesn't work in IE < 9 because of unsupported getters/setters.\n\nTo use CSSOM.js in the browser you might want to build a one-file version with [Jake](http://github.com/mde/node-jake):\n\n ➤ jake\n build/CSSOM.js is done\n\nTo use it with Node.js:\n\n npm install cssom\n\n## [Specs](http://nv.github.com/CSSOM/spec/)\n",
43
+ "readmeFilename": "README.mdown",
42
44
  "_id": "cssom@0.2.5",
43
- "readme": "ERROR: No README.md file found!",
44
45
  "_from": "cssom@0.2.x"
45
46
  }
@@ -1,4 +1,19 @@
1
1
 
2
+ 0.7.2 / 2013-02-06
3
+ ==================
4
+
5
+ * fix package.json
6
+ * fix: Mobile Safari (private mode) is broken with debug
7
+ * fix: Use unicode to send escape character to shell instead of octal to work with strict mode javascript
8
+
9
+ 0.7.1 / 2013-02-05
10
+ ==================
11
+
12
+ * add repository URL to package.json
13
+ * add DEBUG_COLORED to force colored output
14
+ * add browserify support
15
+ * fix component. Closes #24
16
+
2
17
  0.7.0 / 2012-05-04
3
18
  ==================
4
19
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  # debug
3
3
 
4
- tiny node.js debugging utility.
4
+ tiny node.js debugging utility modelled after node core's debugging technique.
5
5
 
6
6
  ## Installation
7
7
 
@@ -9,24 +9,9 @@
9
9
  $ npm install debug
10
10
  ```
11
11
 
12
- ## Example
12
+ ## Usage
13
13
 
14
- This module is modelled after node core's debugging technique, allowing you to enable one or more topic-specific debugging functions, for example core does the following within many modules:
15
-
16
- ```js
17
- var debug;
18
- if (process.env.NODE_DEBUG && /cluster/.test(process.env.NODE_DEBUG)) {
19
- debug = function(x) {
20
- var prefix = process.pid + ',' +
21
- (process.env.NODE_WORKER_ID ? 'Worker' : 'Master');
22
- console.error(prefix, x);
23
- };
24
- } else {
25
- debug = function() { };
26
- }
27
- ```
28
-
29
- This concept is extremely simple but it works well. With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.
14
+ With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.
30
15
 
31
16
  Example _app.js_:
32
17
 
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "debug",
3
+ "repo": "visionmedia/debug",
4
+ "description": "small debugging utility",
5
+ "version": "0.7.2",
6
+ "keywords": ["debug", "log", "debugger"],
7
+ "scripts": ["index.js", "debug.js"],
8
+ "dependencies": {}
9
+ }
@@ -1,4 +1,10 @@
1
1
 
2
+ /**
3
+ * Expose `debug()` as the module.
4
+ */
5
+
6
+ module.exports = debug;
7
+
2
8
  /**
3
9
  * Create a debugger with the given `name`.
4
10
  *
@@ -44,7 +50,9 @@ debug.skips = [];
44
50
  */
45
51
 
46
52
  debug.enable = function(name) {
47
- localStorage.debug = name;
53
+ try {
54
+ localStorage.debug = name;
55
+ } catch(e){}
48
56
 
49
57
  var split = (name || '').split(/[\s,]+/)
50
58
  , len = split.length;
@@ -113,4 +121,4 @@ debug.enabled = function(name) {
113
121
 
114
122
  // persist
115
123
 
116
- if (window.localStorage) debug.enable(localStorage.debug);
124
+ if (window.localStorage) debug.enable(localStorage.debug);
@@ -1,2 +1,5 @@
1
-
2
- module.exports = require('./lib/debug');
1
+ if ('undefined' == typeof window) {
2
+ module.exports = require('./lib/debug');
3
+ } else {
4
+ module.exports = require('./debug');
5
+ }
@@ -1,4 +1,3 @@
1
-
2
1
  /**
3
2
  * Module dependencies.
4
3
  */
@@ -113,10 +112,10 @@ function debug(name) {
113
112
  var ms = curr - (prev[name] || curr);
114
113
  prev[name] = curr;
115
114
 
116
- fmt = ' \033[9' + c + 'm' + name + ' '
117
- + '\033[3' + c + 'm\033[90m'
118
- + fmt + '\033[3' + c + 'm'
119
- + ' +' + humanize(ms) + '\033[0m';
115
+ fmt = ' \u001b[9' + c + 'm' + name + ' '
116
+ + '\u001b[3' + c + 'm\u001b[90m'
117
+ + fmt + '\u001b[3' + c + 'm'
118
+ + ' +' + humanize(ms) + '\u001b[0m';
120
119
 
121
120
  console.error.apply(this, arguments);
122
121
  }
@@ -129,7 +128,7 @@ function debug(name) {
129
128
 
130
129
  colored.enabled = plain.enabled = true;
131
130
 
132
- return isatty
131
+ return isatty || process.env.DEBUG_COLORS
133
132
  ? colored
134
133
  : plain;
135
134
  }
@@ -1,6 +1,10 @@
1
1
  {
2
2
  "name": "debug",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git://github.com/visionmedia/debug.git"
7
+ },
4
8
  "description": "small debugging utility",
5
9
  "keywords": [
6
10
  "debug",
@@ -15,18 +19,19 @@
15
19
  "devDependencies": {
16
20
  "mocha": "*"
17
21
  },
18
- "main": "index",
19
- "browserify": "debug.component.js",
22
+ "main": "lib/debug.js",
23
+ "browserify": "debug.js",
20
24
  "engines": {
21
25
  "node": "*"
22
26
  },
23
27
  "component": {
24
28
  "scripts": {
25
- "debug": "debug.component.js"
29
+ "debug/index.js": "index.js",
30
+ "debug/debug.js": "debug.js"
26
31
  }
27
32
  },
28
- "readme": "\n# debug\n\n tiny node.js debugging utility.\n\n## Installation\n\n```\n$ npm install debug\n```\n\n## Example\n\n This module is modelled after node core's debugging technique, allowing you to enable one or more topic-specific debugging functions, for example core does the following within many modules:\n\n```js\nvar debug;\nif (process.env.NODE_DEBUG && /cluster/.test(process.env.NODE_DEBUG)) {\n debug = function(x) {\n var prefix = process.pid + ',' +\n (process.env.NODE_WORKER_ID ? 'Worker' : 'Master');\n console.error(prefix, x);\n };\n} else {\n debug = function() { };\n}\n```\n\n This concept is extremely simple but it works well. With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.\n \nExample _app.js_:\n\n```js\nvar debug = require('debug')('http')\n , http = require('http')\n , name = 'My App';\n\n// fake app\n\ndebug('booting %s', name);\n\nhttp.createServer(function(req, res){\n debug(req.method + ' ' + req.url);\n res.end('hello\\n');\n}).listen(3000, function(){\n debug('listening');\n});\n\n// fake worker of some kind\n\nrequire('./worker');\n```\n\nExample _worker.js_:\n\n```js\nvar debug = require('debug')('worker');\n\nsetInterval(function(){\n debug('doing some work');\n}, 1000);\n```\n\n The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:\n\n ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)\n\n ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)\n\n## Millisecond diff\n\n When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the \"+NNNms\" will show you how much time was spent between calls.\n\n ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)\n\n When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:\n \n ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)\n\n## Conventions\n\n If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use \":\" to separate features. For example \"bodyParser\" from Connect would then be \"connect:bodyParser\". \n\n## Wildcards\n\n The \"*\" character may be used as a wildcard. Suppose for example your library has debuggers named \"connect:bodyParser\", \"connect:compress\", \"connect:session\", instead of listing all three with `DEBUG=connect:bodyParser,connect.compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.\n\n You can also exclude specific debuggers by prefixing them with a \"-\" character. For example, `DEBUG=* -connect:*` would include all debuggers except those starting with \"connect:\".\n\n## Browser support\n\n Debug works in the browser as well, currently persisted by `localStorage`. For example if you have `worker:a` and `worker:b` as shown below, and wish to debug both type `debug.enable('worker:*')` in the console and refresh the page, this will remain until you disable with `debug.disable()`. \n\n```js\na = debug('worker:a');\nb = debug('worker:b');\n\nsetInterval(function(){\n a('doing some work');\n}, 1000);\n\nsetInterval(function(){\n a('doing some work');\n}, 1200);\n```\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
33
+ "readme": "\n# debug\n\n tiny node.js debugging utility modelled after node core's debugging technique.\n\n## Installation\n\n```\n$ npm install debug\n```\n\n## Usage\n\n With `debug` you simply invoke the exported function to generate your debug function, passing it a name which will determine if a noop function is returned, or a decorated `console.error`, so all of the `console` format string goodies you're used to work fine. A unique color is selected per-function for visibility.\n \nExample _app.js_:\n\n```js\nvar debug = require('debug')('http')\n , http = require('http')\n , name = 'My App';\n\n// fake app\n\ndebug('booting %s', name);\n\nhttp.createServer(function(req, res){\n debug(req.method + ' ' + req.url);\n res.end('hello\\n');\n}).listen(3000, function(){\n debug('listening');\n});\n\n// fake worker of some kind\n\nrequire('./worker');\n```\n\nExample _worker.js_:\n\n```js\nvar debug = require('debug')('worker');\n\nsetInterval(function(){\n debug('doing some work');\n}, 1000);\n```\n\n The __DEBUG__ environment variable is then used to enable these based on space or comma-delimited names. Here are some examples:\n\n ![debug http and worker](http://f.cl.ly/items/18471z1H402O24072r1J/Screenshot.png)\n\n ![debug worker](http://f.cl.ly/items/1X413v1a3M0d3C2c1E0i/Screenshot.png)\n\n## Millisecond diff\n\n When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the \"+NNNms\" will show you how much time was spent between calls.\n\n ![](http://f.cl.ly/items/2i3h1d3t121M2Z1A3Q0N/Screenshot.png)\n\n When stdout is not a TTY, `Date#toUTCString()` is used, making it more useful for logging the debug information as shown below:\n \n ![](http://f.cl.ly/items/112H3i0e0o0P0a2Q2r11/Screenshot.png)\n\n## Conventions\n\n If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use \":\" to separate features. For example \"bodyParser\" from Connect would then be \"connect:bodyParser\". \n\n## Wildcards\n\n The \"*\" character may be used as a wildcard. Suppose for example your library has debuggers named \"connect:bodyParser\", \"connect:compress\", \"connect:session\", instead of listing all three with `DEBUG=connect:bodyParser,connect.compress,connect:session`, you may simply do `DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`.\n\n You can also exclude specific debuggers by prefixing them with a \"-\" character. For example, `DEBUG=* -connect:*` would include all debuggers except those starting with \"connect:\".\n\n## Browser support\n\n Debug works in the browser as well, currently persisted by `localStorage`. For example if you have `worker:a` and `worker:b` as shown below, and wish to debug both type `debug.enable('worker:*')` in the console and refresh the page, this will remain until you disable with `debug.disable()`. \n\n```js\na = debug('worker:a');\nb = debug('worker:b');\n\nsetInterval(function(){\n a('doing some work');\n}, 1000);\n\nsetInterval(function(){\n a('doing some work');\n}, 1200);\n```\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2011 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
29
34
  "readmeFilename": "Readme.md",
30
- "_id": "debug@0.7.0",
35
+ "_id": "debug@0.7.2",
31
36
  "_from": "debug@*"
32
37
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mkdirp",
3
3
  "description": "Recursively mkdir, like `mkdir -p`",
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "author": {
6
6
  "name": "James Halliday",
7
7
  "email": "mail@substack.net",
@@ -20,14 +20,11 @@
20
20
  "test": "tap test/*.js"
21
21
  },
22
22
  "devDependencies": {
23
- "tap": "~0.2.4"
23
+ "tap": "~0.4.0"
24
24
  },
25
- "license": "MIT/X11",
26
- "engines": {
27
- "node": "*"
28
- },
29
- "readme": "mkdirp\n======\n\nLike `mkdir -p`, but in node.js!\n\n[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp)\n\nexample\n=======\n\npow.js\n------\n var mkdirp = require('mkdirp');\n \n mkdirp('/tmp/foo/bar/baz', function (err) {\n if (err) console.error(err)\n else console.log('pow!')\n });\n\nOutput\n pow!\n\nAnd now /tmp/foo/bar/baz exists, huzzah!\n\nmethods\n=======\n\nvar mkdirp = require('mkdirp');\n\nmkdirp(dir, mode, cb)\n---------------------\n\nCreate a new directory and any necessary subdirectories at `dir` with octal\npermission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\n`cb(err, made)` fires with the error or the first directory `made`\nthat had to be created, if any.\n\nmkdirp.sync(dir, mode)\n----------------------\n\nSynchronously create a new directory and any necessary subdirectories at `dir`\nwith octal permission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\nReturns the first directory that had to be created, if any.\n\ninstall\n=======\n\nWith [npm](http://npmjs.org) do:\n\n npm install mkdirp\n\nlicense\n=======\n\nMIT/X11\n",
30
- "readmeFilename": "README.markdown",
31
- "_id": "mkdirp@0.3.4",
25
+ "license": "MIT",
26
+ "readme": "# mkdirp\n\nLike `mkdir -p`, but in node.js!\n\n[![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp)\n\n# example\n\n## pow.js\n\n```js\nvar mkdirp = require('mkdirp');\n \nmkdirp('/tmp/foo/bar/baz', function (err) {\n if (err) console.error(err)\n else console.log('pow!')\n});\n```\n\nOutput\n\n```\npow!\n```\n\nAnd now /tmp/foo/bar/baz exists, huzzah!\n\n# methods\n\n```js\nvar mkdirp = require('mkdirp');\n```\n\n## mkdirp(dir, mode, cb)\n\nCreate a new directory and any necessary subdirectories at `dir` with octal\npermission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\n`cb(err, made)` fires with the error or the first directory `made`\nthat had to be created, if any.\n\n## mkdirp.sync(dir, mode)\n\nSynchronously create a new directory and any necessary subdirectories at `dir`\nwith octal permission string `mode`.\n\nIf `mode` isn't specified, it defaults to `0777 & (~process.umask())`.\n\nReturns the first directory that had to be created, if any.\n\n# install\n\nWith [npm](http://npmjs.org) do:\n\n```\nnpm install mkdirp\n```\n\n# license\n\nMIT\n",
27
+ "readmeFilename": "readme.markdown",
28
+ "_id": "mkdirp@0.3.5",
32
29
  "_from": "mkdirp@0.3.x"
33
30
  }
@@ -1,34 +1,37 @@
1
- mkdirp
2
- ======
1
+ # mkdirp
3
2
 
4
3
  Like `mkdir -p`, but in node.js!
5
4
 
6
5
  [![build status](https://secure.travis-ci.org/substack/node-mkdirp.png)](http://travis-ci.org/substack/node-mkdirp)
7
6
 
8
- example
9
- =======
7
+ # example
10
8
 
11
- pow.js
12
- ------
13
- var mkdirp = require('mkdirp');
9
+ ## pow.js
10
+
11
+ ```js
12
+ var mkdirp = require('mkdirp');
14
13
 
15
- mkdirp('/tmp/foo/bar/baz', function (err) {
16
- if (err) console.error(err)
17
- else console.log('pow!')
18
- });
14
+ mkdirp('/tmp/foo/bar/baz', function (err) {
15
+ if (err) console.error(err)
16
+ else console.log('pow!')
17
+ });
18
+ ```
19
19
 
20
20
  Output
21
- pow!
21
+
22
+ ```
23
+ pow!
24
+ ```
22
25
 
23
26
  And now /tmp/foo/bar/baz exists, huzzah!
24
27
 
25
- methods
26
- =======
28
+ # methods
27
29
 
30
+ ```js
28
31
  var mkdirp = require('mkdirp');
32
+ ```
29
33
 
30
- mkdirp(dir, mode, cb)
31
- ---------------------
34
+ ## mkdirp(dir, mode, cb)
32
35
 
33
36
  Create a new directory and any necessary subdirectories at `dir` with octal
34
37
  permission string `mode`.
@@ -38,8 +41,7 @@ If `mode` isn't specified, it defaults to `0777 & (~process.umask())`.
38
41
  `cb(err, made)` fires with the error or the first directory `made`
39
42
  that had to be created, if any.
40
43
 
41
- mkdirp.sync(dir, mode)
42
- ----------------------
44
+ ## mkdirp.sync(dir, mode)
43
45
 
44
46
  Synchronously create a new directory and any necessary subdirectories at `dir`
45
47
  with octal permission string `mode`.
@@ -48,14 +50,14 @@ If `mode` isn't specified, it defaults to `0777 & (~process.umask())`.
48
50
 
49
51
  Returns the first directory that had to be created, if any.
50
52
 
51
- install
52
- =======
53
+ # install
53
54
 
54
55
  With [npm](http://npmjs.org) do:
55
56
 
56
- npm install mkdirp
57
+ ```
58
+ npm install mkdirp
59
+ ```
57
60
 
58
- license
59
- =======
61
+ # license
60
62
 
61
- MIT/X11
63
+ MIT