Permalink
Browse files

vendoring node_modules not necessary

  • Loading branch information...
1 parent 7a80afa commit b4bfa6ffc094e20679bda5757347db8e275bd47e @substack committed Oct 15, 2012
Showing with 0 additions and 29,747 deletions.
  1. +0 −2 roll_your_own_socketio/node_modules/JSONStream/.npmignore
  2. +0 −4 roll_your_own_socketio/node_modules/JSONStream/.travis.yml
  3. +0 −15 roll_your_own_socketio/node_modules/JSONStream/LICENSE.APACHE2
  4. +0 −24 roll_your_own_socketio/node_modules/JSONStream/LICENSE.MIT
  5. +0 −13 roll_your_own_socketio/node_modules/JSONStream/examples/all_docs.js
  6. +0 −171 roll_your_own_socketio/node_modules/JSONStream/index.js
  7. +0 −414 roll_your_own_socketio/node_modules/JSONStream/node_modules/jsonparse/jsonparse.js
  8. +0 −25 roll_your_own_socketio/node_modules/JSONStream/node_modules/jsonparse/package.json
  9. +0 −35 roll_your_own_socketio/node_modules/JSONStream/package.json
  10. +0 −145 roll_your_own_socketio/node_modules/JSONStream/readme.markdown
  11. +0 −41 roll_your_own_socketio/node_modules/JSONStream/test/bool.js
  12. +0 −4,030 roll_your_own_socketio/node_modules/JSONStream/test/fixtures/all_npm.json
  13. +0 −39 roll_your_own_socketio/node_modules/JSONStream/test/fn.js
  14. +0 −28 roll_your_own_socketio/node_modules/JSONStream/test/parsejson.js
  15. +0 −41 roll_your_own_socketio/node_modules/JSONStream/test/stringify.js
  16. +0 −47 roll_your_own_socketio/node_modules/JSONStream/test/stringify_object.js
  17. +0 −35 roll_your_own_socketio/node_modules/JSONStream/test/test.js
  18. +0 −29 roll_your_own_socketio/node_modules/JSONStream/test/test2.js
  19. +0 −41 roll_your_own_socketio/node_modules/JSONStream/test/two-ways.js
  20. +0 −82 roll_your_own_socketio/node_modules/ecstatic/README.md
  21. +0 −6 roll_your_own_socketio/node_modules/ecstatic/example/core.js
  22. +0 −8 roll_your_own_socketio/node_modules/ecstatic/example/express.js
  23. +0 −1 roll_your_own_socketio/node_modules/ecstatic/example/public/beep/index.html
  24. +0 −1 roll_your_own_socketio/node_modules/ecstatic/example/public/hello.txt
  25. +0 −1 roll_your_own_socketio/node_modules/ecstatic/example/public/subdir/world.txt
  26. BIN roll_your_own_socketio/node_modules/ecstatic/example/public/turtle.png
  27. +0 −10 roll_your_own_socketio/node_modules/ecstatic/example/union.js
  28. +0 −132 roll_your_own_socketio/node_modules/ecstatic/lib/ecstatic.js
  29. +0 −3 roll_your_own_socketio/node_modules/ecstatic/lib/ecstatic/etag.js
  30. +0 −22 roll_your_own_socketio/node_modules/ecstatic/lib/ecstatic/opts.js
  31. +0 −113 roll_your_own_socketio/node_modules/ecstatic/lib/ecstatic/showdir.js
  32. +0 −47 roll_your_own_socketio/node_modules/ecstatic/lib/ecstatic/status-handlers.js
  33. +0 −19 roll_your_own_socketio/node_modules/ecstatic/lib/templates/showdir.html
  34. +0 −1 roll_your_own_socketio/node_modules/ecstatic/node_modules/ent/.npmignore
  35. +0 −35 roll_your_own_socketio/node_modules/ecstatic/node_modules/ent/README.markdown
  36. +0 −255 roll_your_own_socketio/node_modules/ecstatic/node_modules/ent/entities.json
  37. +0 −3 roll_your_own_socketio/node_modules/ecstatic/node_modules/ent/examples/simple.js
  38. +0 −65 roll_your_own_socketio/node_modules/ecstatic/node_modules/ent/index.js
  39. +0 −33 roll_your_own_socketio/node_modules/ecstatic/node_modules/ent/package.json
  40. +0 −56 roll_your_own_socketio/node_modules/ecstatic/node_modules/ent/test/codes.js
  41. +0 −19 roll_your_own_socketio/node_modules/ecstatic/node_modules/mime/LICENSE
  42. +0 −63 roll_your_own_socketio/node_modules/ecstatic/node_modules/mime/README.md
  43. +0 −93 roll_your_own_socketio/node_modules/ecstatic/node_modules/mime/mime.js
  44. +0 −31 roll_your_own_socketio/node_modules/ecstatic/node_modules/mime/package.json
  45. +0 −53 roll_your_own_socketio/node_modules/ecstatic/node_modules/mime/test.js
  46. +0 −1,510 roll_your_own_socketio/node_modules/ecstatic/node_modules/mime/types/mime.types
  47. +0 −48 roll_your_own_socketio/node_modules/ecstatic/node_modules/mime/types/node.types
  48. +0 −43 roll_your_own_socketio/node_modules/ecstatic/package.json
  49. +0 −85 roll_your_own_socketio/node_modules/ecstatic/test/express.js
  50. +0 −1 roll_your_own_socketio/node_modules/ecstatic/test/express/a.txt
  51. +0 −1 roll_your_own_socketio/node_modules/ecstatic/test/express/b.txt
  52. +0 −1 roll_your_own_socketio/node_modules/ecstatic/test/express/c.js
  53. +0 −1 roll_your_own_socketio/node_modules/ecstatic/test/express/subdir/e.html
  54. +0 −1 roll_your_own_socketio/node_modules/ecstatic/test/express/subdir/index.html
  55. +0 −4 roll_your_own_socketio/node_modules/emit-stream/.travis.yml
  56. +0 −18 roll_your_own_socketio/node_modules/emit-stream/LICENSE
  57. +0 −16 roll_your_own_socketio/node_modules/emit-stream/example/client-server/client.js
  58. +0 −30 roll_your_own_socketio/node_modules/emit-stream/example/client-server/server.js
  59. +0 −45 roll_your_own_socketio/node_modules/emit-stream/example/emit.js
  60. +0 −49 roll_your_own_socketio/node_modules/emit-stream/index.js
  61. +0 −41 roll_your_own_socketio/node_modules/emit-stream/package.json
  62. +0 −117 roll_your_own_socketio/node_modules/emit-stream/readme.markdown
  63. +0 −73 roll_your_own_socketio/node_modules/emit-stream/test/emit.js
  64. +0 −1 roll_your_own_socketio/node_modules/shoe/.npmignore
  65. +0 −18 roll_your_own_socketio/node_modules/shoe/LICENSE
  66. +0 −207 roll_your_own_socketio/node_modules/shoe/README.markdown
  67. +0 −66 roll_your_own_socketio/node_modules/shoe/browser.js
  68. +0 −2 roll_your_own_socketio/node_modules/shoe/example/dnode/Makefile
  69. +0 −16 roll_your_own_socketio/node_modules/shoe/example/dnode/client.js
  70. +0 −11 roll_your_own_socketio/node_modules/shoe/example/dnode/package.json
  71. +0 −19 roll_your_own_socketio/node_modules/shoe/example/dnode/server.js
  72. +0 −4,579 roll_your_own_socketio/node_modules/shoe/example/dnode/static/bundle.js
  73. +0 −2 roll_your_own_socketio/node_modules/shoe/example/dnode/static/index.html
  74. +0 −2 roll_your_own_socketio/node_modules/shoe/example/invert/Makefile
  75. +0 −14 roll_your_own_socketio/node_modules/shoe/example/invert/client.js
  76. +0 −11 roll_your_own_socketio/node_modules/shoe/example/invert/package.json
  77. +0 −19 roll_your_own_socketio/node_modules/shoe/example/invert/server.js
  78. +0 −4,103 roll_your_own_socketio/node_modules/shoe/example/invert/static/bundle.js
  79. +0 −2 roll_your_own_socketio/node_modules/shoe/example/invert/static/index.html
  80. +0 −36 roll_your_own_socketio/node_modules/shoe/index.js
  81. +0 −3 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/.npmignore
  82. +0 −11 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/COPYING
  83. +0 −128 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/Changelog
  84. +0 −19 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/LICENSE-MIT-SockJS
  85. +0 −107 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/Makefile
  86. +0 −379 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/README.md
  87. +0 −17 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/VERSION-GEN
  88. +0 −111 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/bin/render.coffee
  89. +0 −135 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/bin/run_testling.sh
  90. +0 −9 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/all.js
  91. +0 −205 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/dom.js
  92. +0 −191 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/dom2.js
  93. +0 −31 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/eventemitter.js
  94. +0 −41 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/index.js
  95. +0 −114 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/info.js
  96. +0 −1 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/json2.min.js
  97. +0 −55 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/reventtarget.js
  98. +0 −28 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/simpleevent.js
  99. +0 −261 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/sockjs.js
  100. +0 −16 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/test-hooks.js
  101. +0 −29 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-iframe-eventsource.js
  102. +0 −35 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-iframe-htmlfile.js
  103. +0 −94 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-iframe-within.js
  104. +0 −30 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-iframe-xhr-polling.js
  105. +0 −93 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-iframe.js
  106. +0 −85 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-jsonp-polling.js
  107. +0 −114 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-jsonp-receiver.js
  108. +0 −44 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-polling.js
  109. +0 −41 ..._your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-receiver-eventsource.js
  110. +0 −65 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-receiver-htmlfile.js
  111. +0 −42 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-receiver-xhr.js
  112. +0 −135 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-sender.js
  113. +0 −60 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-websocket.js
  114. +0 −89 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/trans-xhr.js
  115. +0 −325 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/lib/utils.js
  116. +0 −30 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/package.json
  117. +0 −2,323 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/sockjs.js
  118. +0 −1 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-client/version
  119. +0 −5 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/.npmignore
  120. +0 −6 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/COPYING
  121. +0 −126 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/Changelog
  122. +0 −19 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/LICENSE-MIT-SockJS
  123. +0 −55 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/Makefile
  124. +0 −429 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/README.md
  125. +0 −15 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/echo/README.md
  126. +0 −71 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/echo/index.html
  127. +0 −8 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/echo/package.json
  128. +0 −30 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/echo/server.js
  129. +0 −71 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/express-3.x/index.html
  130. +0 −8 ...your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/express-3.x/package.json
  131. +0 −26 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/express-3.x/server.js
  132. +0 −71 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/express/index.html
  133. +0 −8 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/express/package.json
  134. +0 −23 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/express/server.js
  135. +0 −42 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/haproxy.cfg
  136. +0 −26 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/multiplex/README.md
  137. +0 −96 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/multiplex/index.html
  138. +0 −9 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/multiplex/package.json
  139. +0 −52 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/multiplex/server.js
  140. +0 −30 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/test_server/README.md
  141. +0 −9 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/test_server/config.js
  142. +0 −7 ...your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/test_server/package.json
  143. +0 −19 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/test_server/server.js
  144. +0 −85 ...our_own_socketio/node_modules/shoe/node_modules/sockjs-windows/examples/test_server/sockjs_app.js
  145. +0 −1 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/index.js
  146. +0 −73 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/chunking-test.js
  147. +0 −29 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/iframe.js
  148. +0 −217 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/sockjs.js
  149. +0 −40 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/trans-eventsource.js
  150. +0 −58 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/trans-htmlfile.js
  151. +0 −104 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/trans-jsonp.js
  152. +0 −207 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/trans-websocket.js
  153. +0 −116 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/trans-xhr.js
  154. +0 −372 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/transport.js
  155. +0 −169 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/utils.js
  156. +0 −283 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/lib/webjs.js
  157. +0 −40 ..._socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/CHANGELOG.txt
  158. +0 −248 ...ocketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/README.markdown
  159. +0 −40 ..._modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/examples/autobahn_client.js
  160. +0 −22 ...etio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/examples/client.js
  161. +0 −21 ...o/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/examples/haproxy.conf
  162. +0 −70 ...etio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/examples/server.js
  163. +0 −39 ...ketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/examples/sse.html
  164. +0 −44 ...cketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/examples/ws.html
  165. +0 −104 ...node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/eventsource.js
  166. +0 −91 ...o/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket.js
  167. +0 −83 ...de_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/api.js
  168. +0 −21 ...ules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/api/event.js
  169. +0 −47 ...oe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/api/event_target.js
  170. +0 −83 ...modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/client.js
  171. +0 −98 ...shoe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/draft75_parser.js
  172. +0 −99 ...shoe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/draft76_parser.js
  173. +0 −354 ...es/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/hybi_parser.js
  174. +0 −91 ...de_modules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/hybi_parser/handshake.js
  175. +0 −43 ...odules/sockjs-windows/node_modules/faye-websocket/lib/faye/websocket/hybi_parser/stream_reader.js
  176. +0 −41 ...n_socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/package.json
  177. +0 −162 ...s/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/spec/faye/websocket/client_spec.js
  178. +0 −72 ...node_modules/sockjs-windows/node_modules/faye-websocket/spec/faye/websocket/draft75parser_spec.js
  179. +0 −28 ...node_modules/sockjs-windows/node_modules/faye-websocket/spec/faye/websocket/draft76parser_spec.js
  180. +0 −157 ...e/node_modules/sockjs-windows/node_modules/faye-websocket/spec/faye/websocket/hybi_parser_spec.js
  181. +0 −54 ...socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/spec/runner.js
  182. +0 −15 ...ocketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/spec/server.crt
  183. +0 −15 ...ocketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/faye-websocket/spec/server.key
  184. +0 −2 ...your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/.npmignore
  185. +0 −3 ...your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/LICENSE.md
  186. +0 −199 ..._your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/README.md
  187. +0 −53 ...socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/benchmark/README.md
  188. +0 −174 ...socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/benchmark/bench.gnu
  189. +0 −34 ..._socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/benchmark/bench.sh
  190. +0 −34 ...node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/benchmark/benchmark-native.c
  191. +0 −84 ...ketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/benchmark/benchmark.js
  192. +0 −30 ...ur_own_socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/package.json
  193. +0 −63 ..._socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/test/compare_v1.js
  194. +0 −17 ..._own_socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/test/test.html
  195. +0 −240 ...ur_own_socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/test/test.js
  196. +0 −249 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/node_modules/node-uuid/uuid.js
  197. +0 −28 roll_your_own_socketio/node_modules/shoe/node_modules/sockjs-windows/package.json
  198. +0 −37 roll_your_own_socketio/node_modules/shoe/package.json
  199. +0 −4 roll_your_own_socketio/node_modules/through/.travis.yml
  200. +0 −15 roll_your_own_socketio/node_modules/through/LICENSE.APACHE2
  201. +0 −24 roll_your_own_socketio/node_modules/through/LICENSE.MIT
  202. +0 −67 roll_your_own_socketio/node_modules/through/index.js
  203. +0 −34 roll_your_own_socketio/node_modules/through/package.json
  204. +0 −26 roll_your_own_socketio/node_modules/through/readme.markdown
  205. +0 −113 roll_your_own_socketio/node_modules/through/test/index.js
@@ -1,2 +0,0 @@
-node_modules/*
-node_modules
@@ -1,4 +0,0 @@
-language: node_js
-node_js:
- - 0.4
- - 0.6
@@ -1,15 +0,0 @@
-Apache License, Version 2.0
-
-Copyright (c) 2011 Dominic Tarr
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
@@ -1,24 +0,0 @@
-The MIT License
-
-Copyright (c) 2011 Dominic Tarr
-
-Permission is hereby granted, free of charge,
-to any person obtaining a copy of this software and
-associated documentation files (the "Software"), to
-deal in the Software without restriction, including
-without limitation the rights to use, copy, modify,
-merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom
-the Software is furnished to do so,
-subject to the following conditions:
-
-The above copyright notice and this permission notice
-shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
-ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,13 +0,0 @@
-var request = require('request')
- , JSONStream = require('JSONStream')
- , es = require('event-stream')
-
-var parser = JSONStream.parse(['rows', true]) //emit parts that match this path (any element of the rows array)
- , req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'})
- , logger = es.mapSync(function (data) { //create a stream that logs to stderr,
- console.error(data)
- return data
- })
-
-req.pipe(parser)
-parser.pipe(logger)
@@ -1,171 +0,0 @@
-var Parser = require('jsonparse')
- , Stream = require('stream').Stream
-
-/*
-
- the value of this.stack that creationix's jsonparse has is weird.
-
- it makes this code ugly, but his problem is way harder that mine,
- so i'll forgive him.
-
-*/
-
-exports.parse = function (path) {
-
- var stream = new Stream()
- var parser = new Parser()
- var count = 0
- if(!path.length)
- path = null
- parser.onValue = function () {
- if(!this.root && this.stack.length == 1){
- stream.root = this.value
- }
- if(!path || this.stack.length !== path.length)
- return
- var _path = []
- for( var i = 0; i < (path.length - 1); i++) {
- var key = path[i]
- var c = this.stack[1 + (+i)]
-
- if(!c) {
- return
- }
- var m = check(key, c.key)
- _path.push(c.key)
-
- if(!m)
- return
-
- }
- var c = this
-
- var key = path[path.length - 1]
- var m = check(key, c.key)
- if(!m)
- return
- _path.push(c.key)
-
- count ++
- stream.emit('data', this.value[this.key])
- }
-
-
- parser.onError = function (err) {
- stream.emit('error', err)
- }
- stream.readable = true
- stream.writable = true
- stream.write = function (chunk) {
- if('string' === typeof chunk) {
- if ('undefined' === typeof Buffer) {
- var buf = new Array(chunk.length)
- for (var i = 0; i < chunk.length; i++) buf[i] = chunk.charCodeAt(i)
- chunk = new Int32Array(buf)
- } else {
- chunk = new Buffer(chunk)
- }
- }
- parser.write(chunk)
- }
- stream.end = function (data) {
- if(data)
- stream.write(data)
- stream.emit('root', stream.root, count)
- stream.emit('end')
- }
- return stream
-}
-
-function check (x, y) {
- if ('string' === typeof x)
- return y == x
- else if (x && 'function' === typeof x.exec)
- return x.exec(y)
- else if ('boolean' === typeof x)
- return x
- else if ('function' === typeof x)
- return x(y)
- return false
-}
-
-exports.stringify = function (op, sep, cl) {
- if (op === false){
- op = ''
- sep = '\n'
- cl = ''
- } else if (op == null) {
-
- op = '[\n'
- sep = '\n,\n'
- cl = '\n]\n'
-
- }
-
- //else, what ever you like
-
- var stream = new Stream ()
- , first = true
- , ended = false
- , anyData = false
- stream.write = function (data) {
- anyData = true
- var json = JSON.stringify(data)
- if(first) { first = false ; stream.emit('data', op + json)}
- else stream.emit('data', sep + json)
- }
- stream.end = function (data) {
- if(ended)
- return
- ended = true
- if(data) stream.write(data)
- if(!anyData) stream.emit('data', op)
- stream.emit('data', cl)
-
- stream.emit('end')
- }
- stream.writable = true
- stream.readable = true
-
- return stream
-}
-
-exports.stringifyObject = function (op, sep, cl) {
- if (op === false){
- op = ''
- sep = '\n'
- cl = ''
- } else if (op == null) {
-
- op = '{\n'
- sep = '\n,\n'
- cl = '\n}\n'
-
- }
-
- //else, what ever you like
-
- var stream = new Stream ()
- , first = true
- , ended = false
- , anyData = false
- stream.write = function (data) {
- anyData = true
- var json = JSON.stringify(data[0]) + ':' + JSON.stringify(data[1])
- if(first) { first = false ; stream.emit('data', op + json)}
- else stream.emit('data', sep + json)
- }
- stream.end = function (data) {
- if(ended) return
- ended = true
- if(data) stream.write(data)
- if(!anyData) stream.emit('data', op)
- stream.emit('data', cl)
-
- stream.emit('end')
- }
- stream.writable = true
- stream.readable = true
-
- return stream
-}
Oops, something went wrong. Retry.

0 comments on commit b4bfa6f

Please sign in to comment.