Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove module

  • Loading branch information...
commit 7e96e711a1df3c0180d6812ba8c2f3bf99be78cb 1 parent 11aa54b
@rehorn authored
Showing with 0 additions and 26,360 deletions.
  1. +0 −22 node_modules/colors/MIT-LICENSE.txt
  2. +0 −77 node_modules/colors/ReadMe.md
  3. +0 −269 node_modules/colors/colors.js
  4. +0 −74 node_modules/colors/example.html
  5. +0 −65 node_modules/colors/example.js
  6. +0 −19 node_modules/colors/package.json
  7. +0 −65 node_modules/colors/test.js
  8. +0 −5 node_modules/express.io/.npmignore
  9. +0 −166 node_modules/express.io/README.md
  10. +0 −264 node_modules/express.io/compiled/index.js
  11. +0 −101 node_modules/express.io/compiled/middleware.js
  12. +0 −55 node_modules/express.io/compiled/request.js
  13. +0 −23 node_modules/express.io/compiled/room.js
  14. +0 −22 node_modules/express.io/docs/faq.md
  15. +0 −516 node_modules/express.io/examples/README.md
  16. +0 −45 node_modules/express.io/examples/acknowledgements/README.md
  17. +0 −16 node_modules/express.io/examples/acknowledgements/app.js
  18. +0 −9 node_modules/express.io/examples/acknowledgements/client.html
  19. +0 −22 node_modules/express.io/examples/advanced-routing/app.js
  20. +0 −26 node_modules/express.io/examples/advanced-routing/client.html
  21. +0 −29 node_modules/express.io/examples/backbonejs/app.js
  22. +0 −5 node_modules/express.io/examples/backbonejs/client.html
  23. +0 −49 node_modules/express.io/examples/broadcasting/README.md
  24. +0 −14 node_modules/express.io/examples/broadcasting/app.js
  25. +0 −13 node_modules/express.io/examples/broadcasting/client.html
  26. +0 −20 node_modules/express.io/examples/http-io/README.md
  27. +0 −6 node_modules/express.io/examples/http-io/app.js
  28. +0 −25 node_modules/express.io/examples/https-io/README.md
  29. +0 −12 node_modules/express.io/examples/https-io/app.js
  30. +0 −22 node_modules/express.io/examples/https-io/cert
  31. +0 −28 node_modules/express.io/examples/https-io/key
  32. +0 −12 node_modules/express.io/examples/middleware/app.js
  33. +0 −7 node_modules/express.io/examples/middleware/client.html
  34. +0 −10 node_modules/express.io/examples/package.json
  35. +0 −74 node_modules/express.io/examples/realtime-canvas/README.md
  36. +0 −14 node_modules/express.io/examples/realtime-canvas/app.js
  37. +0 −40 node_modules/express.io/examples/realtime-canvas/client.html
  38. +0 −36 node_modules/express.io/examples/rooms/README.md
  39. +0 −17 node_modules/express.io/examples/rooms/app.js
  40. +0 −15 node_modules/express.io/examples/rooms/client.html
  41. +0 −40 node_modules/express.io/examples/route-forwarding/README.md
  42. +0 −20 node_modules/express.io/examples/route-forwarding/app.js
  43. +0 −51 node_modules/express.io/examples/routing/README.md
  44. +0 −16 node_modules/express.io/examples/routing/app.js
  45. +0 −13 node_modules/express.io/examples/routing/client.html
  46. +0 −49 node_modules/express.io/examples/scaling-with-redis/README.md
  47. +0 −27 node_modules/express.io/examples/scaling-with-redis/app.js
  48. +0 −43 node_modules/express.io/examples/sessions-redis/app.js
  49. +0 −21 node_modules/express.io/examples/sessions-redis/client.html
  50. +0 −71 node_modules/express.io/examples/sessions/README.md
  51. +0 −30 node_modules/express.io/examples/sessions/app.js
  52. +0 −21 node_modules/express.io/examples/sessions/client.html
  53. +0 −125 node_modules/express.io/lib/README.md
  54. +0 −157 node_modules/express.io/lib/index.coffee
  55. +0 −67 node_modules/express.io/lib/middleware.coffee
  56. +0 −33 node_modules/express.io/lib/request.coffee
  57. +0 −10 node_modules/express.io/lib/room.coffee
  58. +0 −15 node_modules/express.io/node_modules/.bin/cake
  59. +0 −6 node_modules/express.io/node_modules/.bin/cake.cmd
  60. +0 −15 node_modules/express.io/node_modules/.bin/coffee
  61. +0 −6 node_modules/express.io/node_modules/.bin/coffee.cmd
  62. +0 −15 node_modules/express.io/node_modules/.bin/express
  63. +0 −6 node_modules/express.io/node_modules/.bin/express.cmd
  64. +0 −9 node_modules/express.io/node_modules/async/.gitmodules
  65. +0 −4 node_modules/express.io/node_modules/async/.npmignore
  66. +0 −19 node_modules/express.io/node_modules/async/LICENSE
  67. +0 −25 node_modules/express.io/node_modules/async/Makefile
  68. +0 −1,021 node_modules/express.io/node_modules/async/README.md
  69. +0 −3  node_modules/express.io/node_modules/async/index.js
  70. +0 −692 node_modules/express.io/node_modules/async/lib/async.js
  71. +0 −35 node_modules/express.io/node_modules/async/package.json
  72. +0 −11 node_modules/express.io/node_modules/coffee-script/.npmignore
  73. +0 −1  node_modules/express.io/node_modules/coffee-script/CNAME
  74. +0 −9 node_modules/express.io/node_modules/coffee-script/CONTRIBUTING.md
  75. +0 −22 node_modules/express.io/node_modules/coffee-script/LICENSE
  76. +0 −51 node_modules/express.io/node_modules/coffee-script/README
  77. +0 −78 node_modules/express.io/node_modules/coffee-script/Rakefile
  78. +0 −7 node_modules/express.io/node_modules/coffee-script/bin/cake
  79. +0 −7 node_modules/express.io/node_modules/coffee-script/bin/coffee
  80. +0 −44 node_modules/express.io/node_modules/coffee-script/extras/jsl.conf
  81. +0 −92 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/browser.js
  82. +0 −113 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/cake.js
  83. +0 −171 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/coffee-script.js
  84. +0 −502 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/command.js
  85. +0 −606 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/grammar.js
  86. +0 −88 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/helpers.js
  87. +0 −11 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/index.js
  88. +0 −788 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/lexer.js
  89. +0 −2,971 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/nodes.js
  90. +0 −138 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/optparse.js
  91. +0 −683 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/parser.js
  92. +0 −276 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/repl.js
  93. +0 −349 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/rewriter.js
  94. +0 −146 node_modules/express.io/node_modules/coffee-script/lib/coffee-script/scope.js
  95. +0 −52 node_modules/express.io/node_modules/coffee-script/package.json
  96. +0 −9 node_modules/express.io/node_modules/express/.npmignore
  97. +0 −4 node_modules/express.io/node_modules/express/.travis.yml
  98. +0 −1,100 node_modules/express.io/node_modules/express/History.md
  99. +0 −22 node_modules/express.io/node_modules/express/LICENSE
  100. +0 −33 node_modules/express.io/node_modules/express/Makefile
  101. +0 −180 node_modules/express.io/node_modules/express/Readme.md
  102. +0 −422 node_modules/express.io/node_modules/express/bin/express
  103. +0 −25 node_modules/express.io/node_modules/express/client.js
  104. +0 −4 node_modules/express.io/node_modules/express/index.js
  105. +0 −533 node_modules/express.io/node_modules/express/lib/application.js
  106. +0 −92 node_modules/express.io/node_modules/express/lib/express.js
  107. +0 −33 node_modules/express.io/node_modules/express/lib/middleware.js
  108. +0 −496 node_modules/express.io/node_modules/express/lib/request.js
  109. +0 −756 node_modules/express.io/node_modules/express/lib/response.js
  110. +0 −273 node_modules/express.io/node_modules/express/lib/router/index.js
  111. +0 −72 node_modules/express.io/node_modules/express/lib/router/route.js
  112. +0 −280 node_modules/express.io/node_modules/express/lib/utils.js
  113. +0 −76 node_modules/express.io/node_modules/express/lib/view.js
  114. +0 −1  node_modules/express.io/node_modules/express/node_modules/buffer-crc32/.npmignore
  115. +0 −8 node_modules/express.io/node_modules/express/node_modules/buffer-crc32/.travis.yml
  116. +0 −47 node_modules/express.io/node_modules/express/node_modules/buffer-crc32/README.md
  117. +0 −88 node_modules/express.io/node_modules/express/node_modules/buffer-crc32/index.js
  118. +0 −40 node_modules/express.io/node_modules/express/node_modules/buffer-crc32/package.json
  119. +0 −89 node_modules/express.io/node_modules/express/node_modules/buffer-crc32/tests/crc.test.js
  120. +0 −4 node_modules/express.io/node_modules/express/node_modules/commander/.npmignore
  121. +0 −4 node_modules/express.io/node_modules/express/node_modules/commander/.travis.yml
  122. +0 −107 node_modules/express.io/node_modules/express/node_modules/commander/History.md
  123. +0 −7 node_modules/express.io/node_modules/express/node_modules/commander/Makefile
  124. +0 −262 node_modules/express.io/node_modules/express/node_modules/commander/Readme.md
  125. +0 −2  node_modules/express.io/node_modules/express/node_modules/commander/index.js
  126. +0 −1,026 node_modules/express.io/node_modules/express/node_modules/commander/lib/commander.js
  127. +0 −39 node_modules/express.io/node_modules/express/node_modules/commander/package.json
  128. +0 −12 node_modules/express.io/node_modules/express/node_modules/connect/.npmignore
  129. +0 −5 node_modules/express.io/node_modules/express/node_modules/connect/.travis.yml
  130. +0 −24 node_modules/express.io/node_modules/express/node_modules/connect/LICENSE
  131. +0 −133 node_modules/express.io/node_modules/express/node_modules/connect/Readme.md
  132. +0 −4 node_modules/express.io/node_modules/express/node_modules/connect/index.js
  133. +0 −81 node_modules/express.io/node_modules/express/node_modules/connect/lib/cache.js
  134. +0 −92 node_modules/express.io/node_modules/express/node_modules/connect/lib/connect.js
  135. +0 −50 node_modules/express.io/node_modules/express/node_modules/connect/lib/index.js
  136. +0 −103 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/basicAuth.js
  137. +0 −61 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js
  138. +0 −152 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/compress.js
  139. +0 −62 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/cookieParser.js
  140. +0 −117 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/cookieSession.js
  141. +0 −73 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/csrf.js
  142. +0 −229 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/directory.js
  143. +0 −86 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js
  144. +0 −80 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/favicon.js
  145. +0 −86 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/json.js
  146. +0 −55 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/limit.js
  147. +0 −339 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/logger.js
  148. +0 −40 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/methodOverride.js
  149. +0 −133 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/multipart.js
  150. +0 −46 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/query.js
  151. +0 −32 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/responseTime.js
  152. +0 −356 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/session.js
  153. +0 −140 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/session/cookie.js
  154. +0 −129 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/session/memory.js
  155. +0 −116 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/session/session.js
  156. +0 −84 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/session/store.js
  157. +0 −95 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/static.js
  158. +0 −231 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/staticCache.js
  159. +0 −55 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/timeout.js
  160. +0 −78 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js
  161. +0 −40 node_modules/express.io/node_modules/express/node_modules/connect/lib/middleware/vhost.js
  162. +0 −79 node_modules/express.io/node_modules/express/node_modules/connect/lib/patch.js
  163. +0 −230 node_modules/express.io/node_modules/express/node_modules/connect/lib/proto.js
  164. +0 −81 node_modules/express.io/node_modules/express/node_modules/connect/lib/public/directory.html
  165. +0 −14 node_modules/express.io/node_modules/express/node_modules/connect/lib/public/error.html
  166. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/favicon.ico
  167. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page.png
  168. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_add.png
  169. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_attach.png
  170. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_code.png
  171. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_copy.png
  172. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_delete.png
  173. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_edit.png
  174. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_error.png
  175. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_excel.png
  176. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_find.png
  177. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_gear.png
  178. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_go.png
  179. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_green.png
  180. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_key.png
  181. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png
  182. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_link.png
  183. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png
  184. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_paste.png
  185. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_red.png
  186. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png
  187. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_save.png
  188. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white.png
  189. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png
  190. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png
  191. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png
  192. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png
  193. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png
  194. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png
  195. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png
  196. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png
  197. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png
  198. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png
  199. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png
  200. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png
  201. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png
  202. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png
  203. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png
  204. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png
  205. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png
  206. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png
  207. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png
  208. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png
  209. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png
  210. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png
  211. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png
  212. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png
  213. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png
  214. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png
  215. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png
  216. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png
  217. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png
  218. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png
  219. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png
  220. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png
  221. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png
  222. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png
  223. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png
  224. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png
  225. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png
  226. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png
  227. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png
  228. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png
  229. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png
  230. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png
  231. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png
  232. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png
  233. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png
  234. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png
  235. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png
  236. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png
  237. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png
  238. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png
  239. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png
  240. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png
  241. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png
  242. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png
  243. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png
  244. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_word.png
  245. BIN  node_modules/express.io/node_modules/express/node_modules/connect/lib/public/icons/page_world.png
  246. +0 −141 node_modules/express.io/node_modules/express/node_modules/connect/lib/public/style.css
  247. +0 −388 node_modules/express.io/node_modules/express/node_modules/connect/lib/utils.js
  248. +0 −1  node_modules/express.io/node_modules/express/node_modules/connect/node_modules/buffer-crc32/.npmignore
  249. +0 −8 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/buffer-crc32/.travis.yml
  250. +0 −33 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/buffer-crc32/README.md
  251. +0 −84 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/buffer-crc32/index.js
  252. +0 −35 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/buffer-crc32/package.json
  253. +0 −52 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/buffer-crc32/tests/crc.test.js
  254. +0 −1  node_modules/express.io/node_modules/express/node_modules/connect/node_modules/bytes/.npmignore
  255. +0 −10 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/bytes/History.md
  256. +0 −7 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/bytes/Makefile
  257. +0 −51 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/bytes/Readme.md
  258. +0 −7 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/bytes/component.json
  259. +0 −39 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/bytes/index.js
  260. +0 −24 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/bytes/package.json
  261. +0 −4 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/.npmignore
  262. +0 −4 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/.travis.yml
  263. +0 −14 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/Makefile
  264. +0 −311 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/Readme.md
  265. +0 −3  node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/TODO
  266. +0 −70 ...ss.io/node_modules/express/node_modules/connect/node_modules/formidable/benchmark/bench-multipart-parser.js
  267. +0 −43 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/example/post.js
  268. +0 −48 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/example/upload.js
  269. +0 −1  node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/index.js
  270. +0 −73 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/lib/file.js
  271. +0 −384 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js
  272. +0 −3  node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/lib/index.js
  273. +0 −312 ...odules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/lib/multipart_parser.js
  274. +0 −25 ...ules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/lib/querystring_parser.js
  275. +0 −6 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/lib/util.js
  276. +0 −4 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/Makefile
  277. +0 −167 ..._modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/Readme.md
  278. +0 −22 ...les/express.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/dog.js
  279. +0 −11 ...s.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/event_emitter.js
  280. +0 −1  node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/index.js
  281. +0 −184 ...press.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/gently.js
  282. +0 −1  ...xpress.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/index.js
  283. +0 −14 ...dules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/package.json
  284. +0 −8 ...les/express.io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/common.js
  285. +0 −348 ...io/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/simple/test-gently.js
  286. +0 −32 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/package.json
  287. +0 −19 node_modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js
  288. +0 −1  ...ss.io/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt
  289. +0 −1  ...es/express.io/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt
  290. +0 −3  ...es/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md
  291. +0 −3  ...express.io/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js
  292. +0 −21 ...e_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js
  293. +0 −72 ...ules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js
  294. +0 −89 ...ress.io/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js
  295. +0 −24 ..._modules/express.io/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js
  296. +0 −80 ...dules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js
  297. +0 −104 ...xpress.io/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js
  298. +0 −727 .../node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js
  299. +0 −50 ...de_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js
  300. +0 −45 ..._modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js
Sorry, we could not display the entire diff because too many files (2,199) changed.
View
22 node_modules/colors/MIT-LICENSE.txt
@@ -1,22 +0,0 @@
-Copyright (c) 2010
-
-Marak Squires
-Alexis Sellier (cloudhead)
-
-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.
View
77 node_modules/colors/ReadMe.md
@@ -1,77 +0,0 @@
-# colors.js - get color and style in your node.js console ( and browser ) like what
-
-<img src="http://i.imgur.com/goJdO.png" border = "0"/>
-
-
-## Installation
-
- npm install colors
-
-## colors and styles!
-
-- bold
-- italic
-- underline
-- inverse
-- yellow
-- cyan
-- white
-- magenta
-- green
-- red
-- grey
-- blue
-- rainbow
-- zebra
-- random
-
-## Usage
-
-``` js
-var colors = require('./colors');
-
-console.log('hello'.green); // outputs green text
-console.log('i like cake and pies'.underline.red) // outputs red underlined text
-console.log('inverse the color'.inverse); // inverses the color
-console.log('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)
-```
-
-# Creating Custom themes
-
-```js
-
-var require('colors');
-
-colors.setTheme({
- silly: 'rainbow',
- input: 'grey',
- verbose: 'cyan',
- prompt: 'grey',
- info: 'green',
- data: 'grey',
- help: 'cyan',
- warn: 'yellow',
- debug: 'blue',
- error: 'red'
-});
-
-// outputs red text
-console.log("this is an error".error);
-
-// outputs yellow text
-console.log("this is a warning".warn);
-```
-
-
-### Contributors
-
-Marak (Marak Squires)
-Alexis Sellier (cloudhead)
-mmalecki (Maciej Małecki)
-nicoreed (Nico Reed)
-morganrallen (Morgan Allen)
-JustinCampbell (Justin Campbell)
-ded (Dustin Diaz)
-
-
-#### , Marak Squires , Justin Campbell, Dustin Diaz (@ded)
View
269 node_modules/colors/colors.js
@@ -1,269 +0,0 @@
-/*
-colors.js
-
-Copyright (c) 2010
-
-Marak Squires
-Alexis Sellier (cloudhead)
-
-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.
-
-*/
-
-var isHeadless = false;
-
-if (typeof module !== 'undefined') {
- isHeadless = true;
-}
-
-if (!isHeadless) {
- var exports = {};
- var module = {};
- var colors = exports;
- exports.mode = "browser";
-} else {
- exports.mode = "console";
-}
-
-//
-// Prototypes the string object to have additional method calls that add terminal colors
-//
-var addProperty = function (color, func) {
- var allowOverride = ['bold'];
- exports[color] = function(str) {
- return func.apply(str);
- };
- String.prototype.__defineGetter__(color, func);
-}
-
-//
-// Iterate through all default styles and colors
-//
-
-var x = ['bold', 'underline', 'italic', 'inverse', 'grey', 'black', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'];
-x.forEach(function (style) {
-
- // __defineGetter__ at the least works in more browsers
- // http://robertnyman.com/javascript/javascript-getters-setters.html
- // Object.defineProperty only works in Chrome
- addProperty(style, function () {
- return stylize(this, style);
- });
-});
-
-function sequencer(map) {
- return function () {
- if (!isHeadless) {
- return this.replace(/( )/, '$1');
- }
- var exploded = this.split("");
- var i = 0;
- exploded = exploded.map(map);
- return exploded.join("");
- }
-}
-
-var rainbowMap = (function () {
- var rainbowColors = ['red','yellow','green','blue','magenta']; //RoY G BiV
- return function (letter, i, exploded) {
- if (letter == " ") {
- return letter;
- } else {
- return stylize(letter, rainbowColors[i++ % rainbowColors.length]);
- }
- }
-})();
-
-exports.addSequencer = function (name, map) {
- addProperty(name, sequencer(map));
-}
-
-exports.addSequencer('rainbow', rainbowMap);
-exports.addSequencer('zebra', function (letter, i, exploded) {
- return i % 2 === 0 ? letter : letter.inverse;
-});
-
-exports.setTheme = function (theme) {
- Object.keys(theme).forEach(function(prop){
- addProperty(prop, function(){
- return exports[theme[prop]](this);
- });
- });
-}
-
-function stylize(str, style) {
-
- if (exports.mode == 'console') {
- var styles = {
- //styles
- 'bold' : ['\033[1m', '\033[22m'],
- 'italic' : ['\033[3m', '\033[23m'],
- 'underline' : ['\033[4m', '\033[24m'],
- 'inverse' : ['\033[7m', '\033[27m'],
- //grayscale
- 'white' : ['\033[37m', '\033[39m'],
- 'grey' : ['\033[90m', '\033[39m'],
- 'black' : ['\033[30m', '\033[39m'],
- //colors
- 'blue' : ['\033[34m', '\033[39m'],
- 'cyan' : ['\033[36m', '\033[39m'],
- 'green' : ['\033[32m', '\033[39m'],
- 'magenta' : ['\033[35m', '\033[39m'],
- 'red' : ['\033[31m', '\033[39m'],
- 'yellow' : ['\033[33m', '\033[39m']
- };
- } else if (exports.mode == 'browser') {
- var styles = {
- //styles
- 'bold' : ['<b>', '</b>'],
- 'italic' : ['<i>', '</i>'],
- 'underline' : ['<u>', '</u>'],
- 'inverse' : ['<span style="background-color:black;color:white;">', '</span>'],
- //grayscale
- 'white' : ['<span style="color:white;">', '</span>'],
- 'grey' : ['<span style="color:grey;">', '</span>'],
- 'black' : ['<span style="color:black;">', '</span>'],
- //colors
- 'blue' : ['<span style="color:blue;">', '</span>'],
- 'cyan' : ['<span style="color:cyan;">', '</span>'],
- 'green' : ['<span style="color:green;">', '</span>'],
- 'magenta' : ['<span style="color:magenta;">', '</span>'],
- 'red' : ['<span style="color:red;">', '</span>'],
- 'yellow' : ['<span style="color:yellow;">', '</span>']
- };
- } else if (exports.mode == 'none') {
- return str;
- } else {
- console.log('unsupported mode, try "browser", "console" or "none"');
- }
- return styles[style][0] + str + styles[style][1];
-};
-
-// don't summon zalgo
-addProperty('zalgo', function () {
- return zalgo(this);
-});
-
-// please no
-function zalgo(text, options) {
- var soul = {
- "up" : [
- '̍','̎','̄','̅',
- '̿','̑','̆','̐',
- '͒','͗','͑','̇',
- '̈','̊','͂','̓',
- '̈','͊','͋','͌',
- '̃','̂','̌','͐',
- '̀','́','̋','̏',
- '̒','̓','̔','̽',
- '̉','ͣ','ͤ','ͥ',
- 'ͦ','ͧ','ͨ','ͩ',
- 'ͪ','ͫ','ͬ','ͭ',
- 'ͮ','ͯ','̾','͛',
- '͆','̚'
- ],
- "down" : [
- '̖','̗','̘','̙',
- '̜','̝','̞','̟',
- '̠','̤','̥','̦',
- '̩','̪','̫','̬',
- '̭','̮','̯','̰',
- '̱','̲','̳','̹',
- '̺','̻','̼','ͅ',
- '͇','͈','͉','͍',
- '͎','͓','͔','͕',
- '͖','͙','͚','̣'
- ],
- "mid" : [
- '̕','̛','̀','́',
- '͘','̡','̢','̧',
- '̨','̴','̵','̶',
- '͜','͝','͞',
- '͟','͠','͢','̸',
- '̷','͡',' ҉'
- ]
- },
- all = [].concat(soul.up, soul.down, soul.mid),
- zalgo = {};
-
- function randomNumber(range) {
- r = Math.floor(Math.random()*range);
- return r;
- };
-
- function is_char(character) {
- var bool = false;
- all.filter(function(i){
- bool = (i == character);
- });
- return bool;
- }
-
- function heComes(text, options){
- result = '';
- options = options || {};
- options["up"] = options["up"] || true;
- options["mid"] = options["mid"] || true;
- options["down"] = options["down"] || true;
- options["size"] = options["size"] || "maxi";
- var counts;
- text = text.split('');
- for(var l in text){
- if(is_char(l)) { continue; }
- result = result + text[l];
-
- counts = {"up" : 0, "down" : 0, "mid" : 0};
-
- switch(options.size) {
- case 'mini':
- counts.up = randomNumber(8);
- counts.min= randomNumber(2);
- counts.down = randomNumber(8);
- break;
- case 'maxi':
- counts.up = randomNumber(16) + 3;
- counts.min = randomNumber(4) + 1;
- counts.down = randomNumber(64) + 3;
- break;
- default:
- counts.up = randomNumber(8) + 1;
- counts.mid = randomNumber(6) / 2;
- counts.down= randomNumber(8) + 1;
- break;
- }
-
- var arr = ["up", "mid", "down"];
- for(var d in arr){
- var index = arr[d];
- for (var i = 0 ; i <= counts[index]; i++)
- {
- if(options[index]) {
- result = result + soul[index][randomNumber(soul[index].length)];
- }
- }
- }
- }
- return result;
- };
- return heComes(text);
-}
-
-addProperty('stripColors', function() {
- return ("" + this).replace(/\u001b\[\d+m/g,'');
-});
View
74 node_modules/colors/example.html
@@ -1,74 +0,0 @@
-<!DOCTYPE HTML>
-<html lang="en-us">
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=utf-8">
- <title>Colors Example</title>
- <script src="colors.js"></script>
- </head>
- <body>
- <script>
-
- var test = colors.red("hopefully colorless output");
-
- document.write('Rainbows are fun!'.rainbow + '<br/>');
- document.write('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); // styles not widely supported
- document.write('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
- //document.write('zalgo time!'.zalgo);
- document.write(test.stripColors);
- document.write("a".grey + " b".black);
-
- document.write("Zebras are so fun!".zebra);
-
- document.write(colors.rainbow('Rainbows are fun!'));
- document.write(colors.italic('So ') + colors.underline('are') + colors.bold(' styles! ') + colors.inverse('inverse')); // styles not widely supported
- document.write(colors.bold(colors.italic(colors.underline(colors.red('Chains are also cool.'))))); // styles not widely supported
- //document.write(colors.zalgo('zalgo time!'));
- document.write(colors.stripColors(test));
- document.write(colors.grey("a") + colors.black(" b"));
-
- colors.addSequencer("america", function(letter, i, exploded) {
- if(letter === " ") return letter;
- switch(i%3) {
- case 0: return letter.red;
- case 1: return letter.white;
- case 2: return letter.blue;
- }
- });
-
- colors.addSequencer("random", (function() {
- var available = ['bold', 'underline', 'italic', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'];
-
- return function(letter, i, exploded) {
- return letter === " " ? letter : letter[available[Math.round(Math.random() * (available.length - 1))]];
- };
- })());
-
- document.write("AMERICA! F--K YEAH!".america);
- document.write("So apparently I've been to Mars, with all the little green men. But you know, I don't recall.".random);
-
- //
- // Custom themes
- //
-
- colors.setTheme({
- silly: 'rainbow',
- input: 'grey',
- verbose: 'cyan',
- prompt: 'grey',
- info: 'green',
- data: 'grey',
- help: 'cyan',
- warn: 'yellow',
- debug: 'blue',
- error: 'red'
- });
-
- // outputs red text
- document.write("this is an error".error);
-
- // outputs yellow text
- document.write("this is a warning".warn);
-
- </script>
- </body>
-</html>
View
65 node_modules/colors/example.js
@@ -1,65 +0,0 @@
-var colors = require('./colors');
-
-//colors.mode = "browser";
-
-var test = colors.red("hopefully colorless output");
-console.log('Rainbows are fun!'.rainbow);
-console.log('So '.italic + 'are'.underline + ' styles! '.bold + 'inverse'.inverse); // styles not widely supported
-console.log('Chains are also cool.'.bold.italic.underline.red); // styles not widely supported
-//console.log('zalgo time!'.zalgo);
-console.log(test.stripColors);
-console.log("a".grey + " b".black);
-
-console.log("Zebras are so fun!".zebra);
-
-console.log(colors.rainbow('Rainbows are fun!'));
-console.log(colors.italic('So ') + colors.underline('are') + colors.bold(' styles! ') + colors.inverse('inverse')); // styles not widely supported
-console.log(colors.bold(colors.italic(colors.underline(colors.red('Chains are also cool.'))))); // styles not widely supported
-//console.log(colors.zalgo('zalgo time!'));
-console.log(colors.stripColors(test));
-console.log(colors.grey("a") + colors.black(" b"));
-
-colors.addSequencer("america", function(letter, i, exploded) {
- if(letter === " ") return letter;
- switch(i%3) {
- case 0: return letter.red;
- case 1: return letter.white;
- case 2: return letter.blue;
- }
-});
-
-colors.addSequencer("random", (function() {
- var available = ['bold', 'underline', 'italic', 'inverse', 'grey', 'yellow', 'red', 'green', 'blue', 'white', 'cyan', 'magenta'];
-
- return function(letter, i, exploded) {
- return letter === " " ? letter : letter[available[Math.round(Math.random() * (available.length - 1))]];
- };
-})());
-
-console.log("AMERICA! F--K YEAH!".america);
-console.log("So apparently I've been to Mars, with all the little green men. But you know, I don't recall.".random);
-
-//
-// Custom themes
-//
-
-colors.setTheme({
- silly: 'rainbow',
- input: 'grey',
- verbose: 'cyan',
- prompt: 'grey',
- info: 'green',
- data: 'grey',
- help: 'cyan',
- warn: 'yellow',
- debug: 'blue',
- error: 'red'
-});
-
-// outputs red text
-console.log("this is an error".error);
-
-// outputs yellow text
-console.log("this is a warning".warn);
-
-
View
19 node_modules/colors/package.json
@@ -1,19 +0,0 @@
-{
- "name": "colors",
- "description": "get colors in your node.js console like what",
- "version": "0.6.0-1",
- "author": {
- "name": "Marak Squires"
- },
- "repository": {
- "type": "git",
- "url": "http://github.com/Marak/colors.js.git"
- },
- "engines": {
- "node": ">=0.1.90"
- },
- "main": "colors",
- "readme": "# colors.js - get color and style in your node.js console ( and browser ) like what\n\n<img src=\"http://i.imgur.com/goJdO.png\" border = \"0\"/>\n\n\n## Installation\n\n npm install colors\n\n## colors and styles!\n\n- bold\n- italic\n- underline\n- inverse\n- yellow\n- cyan\n- white\n- magenta\n- green\n- red\n- grey\n- blue\n- rainbow\n- zebra\n- random\n\n## Usage\n\n``` js\nvar colors = require('./colors');\n\nconsole.log('hello'.green); // outputs green text\nconsole.log('i like cake and pies'.underline.red) // outputs red underlined text\nconsole.log('inverse the color'.inverse); // inverses the color\nconsole.log('OMG Rainbows!'.rainbow); // rainbow (ignores spaces)\n```\n\n# Creating Custom themes\n\n```js\n\nvar require('colors');\n\ncolors.setTheme({\n silly: 'rainbow',\n input: 'grey',\n verbose: 'cyan',\n prompt: 'grey',\n info: 'green',\n data: 'grey',\n help: 'cyan',\n warn: 'yellow',\n debug: 'blue',\n error: 'red'\n});\n\n// outputs red text\nconsole.log(\"this is an error\".error);\n\n// outputs yellow text\nconsole.log(\"this is a warning\".warn);\n```\n\n\n### Contributors \n\nMarak (Marak Squires)\nAlexis Sellier (cloudhead)\nmmalecki (Maciej Małecki)\nnicoreed (Nico Reed)\nmorganrallen (Morgan Allen)\nJustinCampbell (Justin Campbell)\nded (Dustin Diaz)\n\n\n#### , Marak Squires , Justin Campbell, Dustin Diaz (@ded)\n",
- "_id": "colors@0.6.0-1",
- "_from": "colors"
-}
View
65 node_modules/colors/test.js
@@ -1,65 +0,0 @@
-var assert = require('assert'),
- colors = require('./colors');
-
-//
-// This is a pretty nice example on how tests shouldn't be written. However,
-// it's more about API stability than about really testing it (although it's
-// a pretty complete test suite).
-//
-
-var s = 'string';
-
-function a(s, code) {
- return '\033[' + code.toString() + 'm' + s + '\033[39m';
-}
-
-function aE(s, color, code) {
- assert.equal(s[color], a(s, code));
- assert.equal(colors[color](s), a(s, code));
- assert.equal(s[color], colors[color](s));
- assert.equal(s[color].stripColors, s);
- assert.equal(s[color].stripColors, colors.stripColors(s));
-}
-
-function h(s, color) {
- return '<span style="color:' + color + ';">' + s + '</span>';
- // that's pretty dumb approach to testing it
-}
-
-var stylesColors = ['white', 'grey', 'black', 'blue', 'cyan', 'green', 'magenta', 'red', 'yellow'];
-var stylesAll = stylesColors.concat(['bold', 'italic', 'underline', 'inverse', 'rainbow']);
-
-colors.mode = 'console';
-assert.equal(s.bold, '\033[1m' + s + '\033[22m');
-assert.equal(s.italic, '\033[3m' + s + '\033[23m');
-assert.equal(s.underline, '\033[4m' + s + '\033[24m');
-assert.equal(s.inverse, '\033[7m' + s + '\033[27m');
-assert.ok(s.rainbow);
-aE(s, 'white', 37);
-aE(s, 'grey', 90);
-aE(s, 'black', 30);
-aE(s, 'blue', 34);
-aE(s, 'cyan', 36);
-aE(s, 'green', 32);
-aE(s, 'magenta', 35);
-aE(s, 'red', 31);
-aE(s, 'yellow', 33);
-assert.equal(s, 'string');
-
-colors.mode = 'browser';
-assert.equal(s.bold, '<b>' + s + '</b>');
-assert.equal(s.italic, '<i>' + s + '</i>');
-assert.equal(s.underline, '<u>' + s + '</u>');
-assert.equal(s.inverse, '<span style="background-color:black;color:white;">' + s + '</span>');
-assert.ok(s.rainbow);
-stylesColors.forEach(function (color) {
- assert.equal(s[color], h(s, color));
- assert.equal(colors[color](s), h(s, color));
-});
-
-colors.mode = 'none';
-stylesAll.forEach(function (style) {
- assert.equal(s[style], s);
- assert.equal(colors[style](s), s);
-});
-
View
5 node_modules/express.io/.npmignore
@@ -1,5 +0,0 @@
-
-node_modules
-*.swp
-*.swo
-*.swn
View
166 node_modules/express.io/README.md
@@ -1,166 +0,0 @@
-![express.io](http://cdn.techpines.io/express.io-black.png)
-
-realtime-web framework for node.js
-
-```coffeescript
-express.io = express + socket.io
-```
-
-## Simple App Setup
-
-Here is the canonical express.io example.
-
-```javascript
-app = require('express.io')()
-app.http().io()
-
-//build your realtime-web app
-
-app.listen(7076)
-```
-
-## Upgrade your existing Express apps
-
-First install:
-
-```bash
-npm install express.io
-```
-
-Then, simply replace this line of code
-
-```javascript
-require('express')
-```
-
-with this line of code
-
-```javascript
-require('express.io')
-```
-
-Your app should run just the same as before! Express.io is designed to be a superset of Express and Socket.io. An easy to use drop-in replacement that makes it simple to get started with the realtime-web.
-
-## Realtime Routing is Sweet
-
-With express.io you can do realtime routing like a pro.
-
-```js
-app.io.route('customers', {
- create: function(req) {
- // create your customer
- },
- update: function(req) {
- // update your customer
- },
- remove: function(req) {
- // remove your customer
- },
-});
-```
-
-And then on the client you would emit these events:
-
-* `customers:create`
-* `customers:update`
-* `customers:delete`
-
-Or do it the old fashioned way:
-
-```js
-app.io.route('my-realtime-route', function(req) {
- // respond to the event
-});
-```
-
-## Automatic Session Support
-
-Sessions work automatically, just set them up like normal using express.
-
-```js
-app.use(express.session({secret: 'express.io makes me happy'}));
-```
-
-## Double Up - Forward Normal Http Routes to Realtime Routes
-
-It's easy to forward regular http routes to your realtime routes.
-
-```js
-app.get('/', function(req, res) {
- req.io.route('some-cool-realtime-route');
-});
-```
-
-## Examples
-
-__All of these examples work.__ I repeat, __they all work__. Express.io is a very simple framework that allows you to build incredibly complex realtime apps with very little code.
-
-[All Examples](https://github.com/techpines/express.io/tree/master/examples#readme)
-
-Or view them bite size:
-
-* [Simple HTTP + IO Setup](https://github.com/techpines/express.io/tree/master/examples#simple-http--io-setup)
-* [Simple HTTPS + IO Setup](https://github.com/techpines/express.io/tree/master/examples#simple-https--io-setup)
-* [Routing](https://github.com/techpines/express.io/tree/master/examples#routing)
-* [Route Forwarding](https://github.com/techpines/express.io/tree/master/examples#route-forwarding)
-* [Broadcasting](https://github.com/techpines/express.io/tree/master/examples#broadcasting)
-* [Sessions](https://github.com/techpines/express.io/tree/master/examples#sessions)
-* [Rooms](https://github.com/techpines/express.io/tree/master/examples#rooms)
-* [Acknowledgements](https://github.com/techpines/express.io/tree/master/examples#acknowledgements)
-* [Realtime Canvas](https://github.com/techpines/express.io/tree/master/examples#realtime-canvas)
-* [Scaling with Redis](https://github.com/techpines/express.io/tree/master/examples#scaling-with-redis)
-
-To run the examples from git, do the following:
-
-```js
-git clone https://github.com/techpines/express.io
-cd express.io/examples
-npm install
-```
-
-Then you'll be ready to run the example code with a simple:
-
-```
-node app.js
-```
-
-## API Reference
-
-This should help you get a birds eye view of the __express.io__ architecture. Simple and lean. Reuse your express and socket.io knowledge.
-
-[API Reference](https://github.com/techpines/express.io/tree/master/lib#readme)
-
-Here are all the wonderful __express.io__ objects!
-
-* [ExpressIO](https://github.com/techpines/express.io/tree/master/lib#expressio)
-* [ExpressApp](https://github.com/techpines/express.io/tree/master/lib#expressapp)
-* [AppIO](https://github.com/techpines/express.io/tree/master/lib#appio)
-* [SocketRequest](https://github.com/techpines/express.io/tree/master/lib#socketrequest)
-* [RequestIO](https://github.com/techpines/express.io/tree/master/lib#requestio)
-
-## FAQ
-
-Have frequent questions, we have frequent answers.
-
-[Check here](https://github.com/techpines/express.io/tree/master/docs/faq.md).
-
-## Test
-
-We have a full test suite. We also run the full express test suite to ensure compatibility.
-
-```bash
-cd test
-./test
-```
-
-
-## License
-It's free! Party with the MIT!
-
-Copyright (c) 2012 Tech Pines LLC, Brad Carleton
-
-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.
View
264 node_modules/express.io/compiled/index.js
@@ -1,264 +0,0 @@
-// Generated by CoffeeScript 1.4.0
-(function() {
- var RequestIO, RoomIO, async, connect, express, http, https, initRoutes, io, key, listen, middleware, session, sessionConfig, value, _;
-
- connect = require('express/node_modules/connect');
-
- express = require('express');
-
- io = require('socket.io');
-
- http = require('http');
-
- https = require('https');
-
- async = require('async');
-
- middleware = require('./middleware');
-
- _ = require('underscore');
-
- RequestIO = require('./request').RequestIO;
-
- RoomIO = require('./room').RoomIO;
-
- express.io = io;
-
- express.io.routeForward = middleware.routeForward;
-
- session = express.session;
-
- delete express.session;
-
- sessionConfig = new Object;
-
- express.session = function(options) {
- var _ref, _ref1, _ref2;
- if (options == null) {
- options = new Object;
- }
- if ((_ref = options.key) == null) {
- options.key = 'connect.sid';
- }
- if ((_ref1 = options.store) == null) {
- options.store = new session.MemoryStore;
- }
- if ((_ref2 = options.cookie) == null) {
- options.cookie = new Object;
- }
- sessionConfig = options;
- return session(options);
- };
-
- for (key in session) {
- value = session[key];
- express.session[key] = value;
- }
-
- express.application.http = function() {
- this.server = http.createServer(this);
- return this;
- };
-
- express.application.https = function(options) {
- this.server = https.createServer(options, this);
- return this;
- };
-
- express.application.io = function(options) {
- var defaultOptions,
- _this = this;
- if (options == null) {
- options = new Object;
- }
- defaultOptions = {
- log: false
- };
- _.extend(options, defaultOptions);
- this.io = io.listen(this.server, options);
- this.io.router = new Object;
- this.io.middleware = [];
- this.io.route = function(route, next, options) {
- var split, _results;
- if ((options != null ? options.trigger : void 0) === true) {
- if (route.indexOf(':' === -1)) {
- this.router[route](next);
- } else {
- split = route.split(':');
- this.router[split[0]][split[1]](next);
- }
- }
- if (_.isFunction(next)) {
- return this.router[route] = next;
- } else {
- _results = [];
- for (key in next) {
- value = next[key];
- _results.push(this.router["" + route + ":" + key] = value);
- }
- return _results;
- }
- };
- this.io.configure(function() {
- return _this.io.set('authorization', function(data, next) {
- var cookieParser;
- if (sessionConfig.store == null) {
- return async.forEachSeries(_this.io.middleware, function(callback, next) {
- return callback(data, next);
- }, function(error) {
- if (error != null) {
- return next(error);
- }
- return next(null, true);
- });
- }
- cookieParser = express.cookieParser();
- return cookieParser(data, null, function(error) {
- var rawCookie, request, sessionId;
- if (error != null) {
- return next(error);
- }
- rawCookie = data.cookies[sessionConfig.key];
- if (rawCookie == null) {
- request = {
- headers: {
- cookie: data.query.cookie
- }
- };
- return cookieParser(request, null, function(error) {
- var sessionId;
- data.cookies = request.cookies;
- rawCookie = data.cookies[sessionConfig.key];
- if (rawCookie == null) {
- return next("No cookie present", false);
- }
- sessionId = connect.utils.parseSignedCookie(rawCookie, sessionConfig.secret);
- data.sessionID = sessionId;
- return sessionConfig.store.get(sessionId, function(error, session) {
- if (error != null) {
- return next(error);
- }
- data.session = new connect.session.Session(data, session);
- return next(null, true);
- });
- });
- }
- sessionId = connect.utils.parseSignedCookie(rawCookie, sessionConfig.secret);
- data.sessionID = sessionId;
- return sessionConfig.store.get(sessionId, function(error, session) {
- if (error != null) {
- return next(error);
- }
- data.session = new connect.session.Session(data, session);
- return next(null, true);
- });
- });
- });
- });
- this.io.use = function(callback) {
- return _this.io.middleware.push(callback);
- };
- this.io.sockets.on('connection', function(socket) {
- return initRoutes(socket, _this.io);
- });
- this.io.broadcast = function() {
- var args;
- args = Array.prototype.slice.call(arguments, 0);
- return _this.io.sockets.emit.apply(_this.io.sockets, args);
- };
- this.io.room = function(room) {
- return new RoomIO(room, _this.io.sockets);
- };
- this.stack.push({
- route: '',
- handle: function(request, response, next) {
- request.io = {
- route: function(route) {
- var ioRequest;
- ioRequest = new Object;
- for (key in request) {
- value = request[key];
- ioRequest[key] = value;
- }
- ioRequest.io = {
- broadcast: _this.io.broadcast,
- respond: function() {
- var args;
- args = Array.prototype.slice.call(arguments, 0);
- return response.json.apply(response, args);
- },
- route: function(route) {
- return _this.io.route(route, ioRequest, {
- trigger: true
- });
- },
- data: request.body
- };
- return _this.io.route(route, ioRequest, {
- trigger: true
- });
- },
- broadcast: _this.io.broadcast
- };
- return next();
- }
- });
- return this;
- };
-
- listen = express.application.listen;
-
- express.application.listen = function() {
- var args;
- args = Array.prototype.slice.call(arguments, 0);
- if (this.server != null) {
- return this.server.listen.apply(this.server, args);
- } else {
- return listen.apply(this, args);
- }
- };
-
- initRoutes = function(socket, io) {
- var setRoute, _ref, _results;
- setRoute = function(key, callback) {
- return socket.on(key, function(data, respond) {
- var request, _base, _ref;
- if (typeof data === 'function') {
- respond = data;
- data = void 0;
- }
- request = {
- data: data,
- session: socket.handshake.session,
- sessionID: socket.handshake.sessionID,
- sessionStore: sessionConfig.store,
- socket: socket,
- headers: socket.handshake.headers,
- cookies: socket.handshake.cookies,
- handshake: socket.handshake
- };
- session = socket.handshake.session;
- if (session != null) {
- request.session = new connect.session.Session(request, session);
- }
- socket.handshake.session = request.session;
- request.io = new RequestIO(socket, request, io);
- request.io.respond = respond;
- if ((_ref = (_base = request.io).respond) == null) {
- _base.respond = function() {};
- }
- return callback(request);
- });
- };
- _ref = io.router;
- _results = [];
- for (key in _ref) {
- value = _ref[key];
- _results.push(setRoute(key, value));
- }
- return _results;
- };
-
- module.exports = express;
-
-}).call(this);
View
101 node_modules/express.io/compiled/middleware.js
@@ -1,101 +0,0 @@
-// Generated by CoffeeScript 1.4.0
-(function() {
- var configs, regex, _;
-
- _ = require('underscore');
-
- regex = {
- single: /\/([^\/]+)\/?/,
- doubleOptional: /\/([^\/]+)(?:\/([^\/]+)\/?)?/,
- double: /\/([^\/]+)\/([^\/]+)\/?/
- };
-
- configs = {
- backbone: {
- create: {
- method: 'post',
- regex: regex.single
- },
- read: {
- method: 'get',
- regex: regex.doubleOptional,
- variables: ['id']
- },
- update: {
- method: 'put',
- regex: regex.double,
- variables: ['id']
- },
- "delete": {
- method: 'delete',
- regex: regex.double,
- variables: ['id']
- }
- },
- angular: {
- list: {
- method: 'get',
- regex: regex.single
- },
- create: {
- method: 'post',
- regex: regex.single
- },
- read: {
- method: 'get',
- regex: regex.double,
- variables: ['id']
- },
- update: {
- method: 'put',
- regex: regex.double,
- variables: ['id']
- },
- "delete": {
- method: 'delete',
- regex: regex.double,
- variables: ['id']
- }
- }
- };
-
- configs.backbonjs = configs.backbone;
-
- configs.angularjs = configs.angular;
-
- exports.routeForward = function(options) {
- if (!_.isObject(options.config)) {
- options.type = options.config;
- options.config = configs[options.type];
- if (options.config == null) {
- throw new Error("RouteForwardError: No config for " + options.type);
- }
- }
- return function(request, response, next) {
- var index, match, meta, route, variable, _ref, _ref1, _ref2, _ref3;
- _ref = options.config;
- for (route in _ref) {
- meta = _ref[route];
- if (meta.method === request.method.toLowerCase()) {
- match = meta.regex.exec(request.url);
- if (match != null) {
- if ((_ref1 = meta.variables) == null) {
- meta.variables = [];
- }
- if ((_ref2 = request.params) == null) {
- request.params = {};
- }
- _ref3 = meta.variables;
- for (variable in _ref3) {
- index = _ref3[variable];
- request.params[variable] = match[index + 2];
- }
- return request.io.route("" + match[1] + ":" + route);
- }
- }
- }
- return next();
- };
- };
-
-}).call(this);
View
55 node_modules/express.io/compiled/request.js
@@ -1,55 +0,0 @@
-// Generated by CoffeeScript 1.4.0
-(function() {
- var RoomIO;
-
- RoomIO = require('./room').RoomIO;
-
- exports.RequestIO = (function() {
-
- function RequestIO(socket, request, io) {
- this.socket = socket;
- this.request = request;
- this.manager = io;
- }
-
- RequestIO.prototype.broadcast = function(event, message) {
- return this.socket.broadcast.emit(event, message);
- };
-
- RequestIO.prototype.emit = function(event, message) {
- return this.socket.emit(event, message);
- };
-
- RequestIO.prototype.room = function(room) {
- return new RoomIO(room, this.socket);
- };
-
- RequestIO.prototype.join = function(room) {
- return this.socket.join(room);
- };
-
- RequestIO.prototype.route = function(route) {
- return this.manager.route(route, this.request, {
- trigger: true
- });
- };
-
- RequestIO.prototype.leave = function(room) {
- return this.socket.leave(room);
- };
-
- RequestIO.prototype.on = function() {
- var args;
- args = Array.prototype.slice.call(arguments, 0);
- return this.sockets.on.apply(this.socket, args);
- };
-
- RequestIO.prototype.disconnect = function(callback) {
- return this.socket.disconnect(callback);
- };
-
- return RequestIO;
-
- })();
-
-}).call(this);
View
23 node_modules/express.io/compiled/room.js
@@ -1,23 +0,0 @@
-// Generated by CoffeeScript 1.4.0
-(function() {
-
- exports.RoomIO = (function() {
-
- function RoomIO(name, socket) {
- this.name = name;
- this.socket = socket;
- }
-
- RoomIO.prototype.broadcast = function(event, message) {
- if (this.socket.broadcast != null) {
- return this.socket.broadcast.to(this.name).emit(event, message);
- } else {
- return this.socket["in"](this.name).emit(event, message);
- }
- };
-
- return RoomIO;
-
- })();
-
-}).call(this);
View
22 node_modules/express.io/docs/faq.md
@@ -1,22 +0,0 @@
-
-## FAQ
-
-### Why did I write this?
-
-After running through the agony of starting express, http, https, and socket.io servers from scratch a few dozen times, I decided that there had to be a better way to combine all of these powerful technologies together in a non-stupid manner.
-
-So, I set off to write a simple micro-framework to put everything together into one simple, elegant and high performance library.
-
-### Do all of the examples work?
-
-Yes, I went through and painstakingly tested all of the examples. Almost all of them can be copy-pasted directly from the docs.
-
-I take the examples in this project very seriously. If you run into any problems, then please file an issue.
-
-### Is this a drop-in replacement for express?
-
-Yes, with the caveat that you are using a compatible version of express to the one express.io is using. Currently, express@3.x should just work as a replacement.
-
-### Is it ready for production?
-
-Yes, we have been using it in production without issue.
View
516 node_modules/express.io/examples/README.md
@@ -1,516 +0,0 @@
-
-# Examples
-
-__All of these examples work__. I repeat, __all of these examples work__. Almost every example will work if copy and pasted. These are working examples. Just make sure you have `node` and `express.io` installed. :)
-
-You can also run them straight out of the repository without copy-pasting, if you do the following.
-
-```bash
-git clone git://github.com/techpines/express.io
-cd express.io/examples
-npm install
-```
-
-Then `cd` into an example directory and run:
-
-```bash
-node app.js
-```
-
-## Simple HTTP + IO Setup
-
-__This is a copy-paste example.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/http-io)
-
-This is the canonical __express.io__ example. It does nothing, except set up
-an http server and an io server together on the same port.
-
-When you run this example, the server should start.
-
-#### Server (app.js)
-
-```js
-app = require('express.io')()
-app.http().io()
-
-// build realtime-web app
-
-app.listen(7076)
-```
-
-## Simple HTTPS + IO Setup
-
-__This is a copy-paste example, if key and cert files present.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/https-io)
-
-This is the same as the HTTP example, but for HTTPS. You have to pass the key and cert contents as an option.
-
-When you run this example, the server should start.
-
-#### Server (app.js)
-
-```js
-fs = require('fs')
-options = {
- key: fs.readFileSync('./key'),
- cert: fs.readFileSync('./cert')
-}
-
-app = require('express.io')()
-app.https(options).io()
-
-// build realtime-web app
-
-app.listen(7076)
-```
-
-## Routing
-
-__This is a copy-paste example.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/routing)
-
-Express.io comes with a simple io routing system. Use `app.io.route` by providing a `route` and a `callback`. The `callback` receives a [SocketRequest](https://github.com/techpines/express.io/tree/master/lib#socketrequest) object.
-
-The philosophy behind the routing system is that it should be simple, flexible, and high performance.
-
-When you run this example, go to your browser on `localhost:7076`, and you should see an alert message pop up, that is triggered by the io route.
-
-
-#### Server (app.js)
-
-```js
-app = require('express.io')()
-app.http().io()
-
-// Setup the ready route, and emit talk event.
-app.io.route('ready', function(req) {
- req.io.emit('talk', {
- message: 'io event from an io route on the server'
- })
-})
-
-// Send the client html.
-app.get('/', function(req, res) {
- res.sendfile(__dirname + '/client.html')
-})
-
-app.listen(7076)
-```
-
-#### Client (client.html)
-
-```html
-<script src="/socket.io/socket.io.js"></script>
-<script>
-io = io.connect()
-
-// Emit ready event.
-io.emit('ready')
-
-// Listen for the talk event.
-io.on('talk', function(data) {
- alert(data.message)
-})
-
-</script>
-```
-
-## Route Forwarding
-
-__This is a copy-paste example.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/route-forwarding)
-
-The "middleware" style of routing is not a very good fit for io requests. A typical io request does not need a response, so instead of "middleware", __express.io__ offers a robust system based on __route forwarding__. Route forwarding can allow for a variety of rich, complex realtime interactions.
-
-To forward a request, you use `req.io.route(route)`.
-
-In this example, a route is a passed from an initial web request through two io routes, until finally back to the user. If you go to `localhost:7076` you should see a simple json request returned.
-
-
-#### Server (app.js)
-
-```js
-app = require('express.io')()
-app.http().io()
-
-// Initial web request.
-app.get('/', function(req, res) {
- // Forward to an io route.
- req.io.route('hello')
-})
-
-// Forward io route to another io route.
-app.io.route('hello', function(req) {
- req.io.route('hello-again')
-})
-
-// Sends response from io route.
-app.io.route('hello-again', function(req) {
- req.io.respond({hello: 'from io route'})
-})
-
-app.listen(7076)
-```
-
-__Note__: When you forward http requests to io routes, `req.io.respond(data)` will call `res.json(data)` on the actual http request. This makes sense because http routes require a response, and the `respond` method is supposed to be a response for the given request.
-
-Also, depending on the sophistication needed between a socket request and a web request, you might consider writing your own custom middleware layer and overriding `req.io.route` for your web requests.
-
-## Middleware
-
-Middleware only runs __ONCE__ during the initial io connection. This allows you to perform authentication, log things in your database, or anything else you can imagine. It does not run on every subsequent io request.
-
-#### Server (app.js)
-
-```
-app = require('express.io')()
-
-app.io.use(function(data, next) {
- next('screw you')
-})
-
-app.listen(7076)
-```
-
-## Broadcasting
-
-__This is a copy-paste example__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/broadcasting)
-
-You can easily broadcast messages to all your connected io clients. There are two primary ways to broadcast a message using __express.io__:
-
-* `app.io.broadcast(event, data)` - Will send the `event` and `data` to all connected clients.
-* `req.io.broadcast(event, data)` - Will send the `event` and `data` to all connected clients except the client associated with the request.
-
-For this example, pop open two browser windows to `localhost:7076`, then click refresh about five or six times on the second window, while watching what happens in the first window.
-
-
-#### Server (app.js)
-
-```js
-app = require('express.io')()
-app.http().io()
-
-// Broadcast the new visitor event on ready route.
-app.io.route('ready', function(req) {
- req.io.broadcast('new visitor')
-})
-
-// Send client html.
-app.get('/', function(req, res) {
- res.sendfile(__dirname + '/client.html')
-})
-
-app.listen(7076)
-```
-
-#### Client (client.html)
-
-```html
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
-<script src="/socket.io/socket.io.js"></script>
-<script>
-io = io.connect()
-
-// Send the ready event.
-io.emit('ready')
-
-// Listen for the new visitor event.
-io.on('new visitor', function() {
- $('body').append('<p>New visitor, hooray! ' + new Date().toString() +'</p>')
-})
-</script>
-```
-
-## Sessions
-
-__This is a copy-paste example.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/sessions)
-
-In __express.io__, sessions are shared between web requests and io requests. This makes it a breeze to share a little state or perform authentication. You setup your sessions exactly as you would with express, and all the magic is handled for you!
-
-For this example, go to `localhost:7076`, and you will be prompted by a few questions, and the server will prove the sessions are working.
-
-#### Server (app.js)
-
-```js
-express = require('express.io')
-app = express().http().io()
-
-// Setup your sessions, just like normal.
-app.use(express.cookieParser())
-app.use(express.session({secret: 'monkey'}))
-
-// Session is automatically setup on initial request.
-app.get('/', function(req, res) {
- req.session.loginDate = new Date().toString()
- res.sendfile(__dirname + '/client.html')
-})
-
-// Setup a route for the ready event, and add session data.
-app.io.route('ready', function(req) {
- req.session.name = req.data
- req.session.save(function() {
- req.io.emit('get-feelings')
- })
-})
-
-// Send back the session data.
-app.io.route('send-feelings', function(req) {
- req.session.feelings = req.data
- req.session.save(function() {
- req.io.emit('session', req.session)
- })
-})
-
-app.listen(7076)
-```
-
-#### Client (client.html)
-
-```html
-<script src="/socket.io/socket.io.js"></script>
-<script>
- var socket = io.connect();
-
- // Emit ready event.
- socket.emit('ready', prompt('What is your name?'))
-
- // Listen for get-feelings event.
- socket.on('get-feelings', function () {
- socket.emit('send-feelings', prompt('How do you feel?'));
- })
-
- // Listen for session event.
- socket.on('session', function(data) {
- message = 'Hey ' + data.name + '!\n\n'
- message += 'Server says you feel '+ data.feelings + '\n'
- message += 'I know these things because sessions work!\n\n'
- message += 'Also, you joined ' + data.loginDate + '\n'
- alert(message)
- })
-</script>
-```
-
-__Note__: You need to save the session explicitly for io requests, because there is no guarantee of a response, unlike a normal http request.
-
-## Rooms
-
-__This is a copy-paste example.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/rooms)
-
-Sometimes you will want to group your io clients together into rooms. With __express.io__ this is a breeze! Here are the commands for dealing with rooms:
-
-* `req.io.join(room)` - The client for the request joins `room`.
-* `req.io.leave(room)` - The client for the request leaves `room`.
-* `req.io.room(room).broadcast(event, data)` - Broadcast to all client in the room except for the current one.
-* `app.io.room(room).brodcast(event, data)` - Broadcast to all clients in the room.
-
-For this example, open two browser windows on `localhost:7076`. You will be prompted to give a room name. Enter the same room name for each browser, then check back with the first window to see the result.
-
-Also, try a third window with a different room name, and see your other windows miss the broadcast.
-
-#### Server (app.js)
-
-```js
-app = require('express.io')()
-app.http().io()
-
-// Setup the ready route, join room and broadcast to room.
-app.io.route('ready', function(req) {
- req.io.join(req.data)
- req.io.room(req.data).broadcast('announce', {
- message: 'New client in the ' + req.data + ' room. '
- })
-})
-
-// Send the client html.
-app.get('/', function(req, res) {
- res.sendfile(__dirname + '/client.html')
-})
-
-app.listen(7076)
-```
-
-#### Client (client.html)
-
-```html
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
-<script src="/socket.io/socket.io.js"></script>
-<script>
-io = io.connect()
-room = prompt('type a room name')
-
-// Emit ready event with room name.
-io.emit('ready', room)
-
-// Listen for the announce event.
-io.on('announce', function(data) {
- $('body').append('<p>'+data.message+ new Date().toString()+'</p>')
-})
-
-</script>
-```
-
-## Acknowledgements
-
-__This is a copy-paste example.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/acknowledgements)
-
-Sometimes you need confirmation or acknowledgement from the server for an io request. To respond from the server you need to call `req.io.respond(data)`.
-
-For this example, go to `localhost:7076` and you should get a pop-up from the acknowledgement.
-
-#### Server (app.js)
-
-```js
-app = require('express.io')()
-app.http().io()
-
-// Setup the ready route.
-app.io.route('ready', function(req) {
- req.io.respond({
- success: 'here is your acknowledegment for the ready event'
- })
-})
-
-app.get('/', function(req, res) {
- res.sendfile(__dirname + '/client.html')
-})
-
-app.listen(7076)
-```
-
-#### Client (client.html)
-
-```html
-<script src="/socket.io/socket.io.js"></script>
-<script>
-io = io.connect()
-
-// Emit ready event, and wait for acknowledgement.
-io.emit('ready', {hey: 'server'}, function(data) {
- alert(data.success)
-})
-</script>
-```
-
-This might lead some people to wonder, when is it best to send an acknowledgement vs just emitting an event to the client. It actually doesn't matter, it's more of a code clarity thing. Events are more flexible, because they can be triggered in a number of different ways, whereas the acknowledgement is a straight response.
-
-In a way, the acknowledgements are a little more old-fashioned, pushing you towards the "every request has a response" mentality of traditional http. Sometimes this is good, other times it's not. Use common sense and just be consistent with whatever approach you take, and you should be fine.
-
-## Realtime Canvas
-
-__This is a copy-paste example.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/realtime-canvas)
-
-This is a realtime canvas example. It's really cool, and it works right of the box, so give it a try!
-
-Open two browser windows on `localhost:7076`, then click and drag to draw in the first browser window, and you can see it draw in the second browser!
-
-#### Server (app.js)
-
-```js
-express = require('express.io')
-app = express().http().io()
-
-// Broadcast all draw clicks.
-app.io.route('drawClick', function(req) {
- req.io.broadcast('draw', req.data)
-})
-
-// Send client html.
-app.get('/', function(req, res) {
- res.sendfile(__dirname + '/client.html')
-})
-
-app.listen(7076)
-```
-
-#### Client (client.html)
-
-```html
-<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
-<script src="//cdn.techpines.io/jquery.event.drag-2.0.js"></script>
-<script src="/socket.io/socket.io.js"></script>
-<script>
- App = {}
- App.socket = io.connect()
-
- // Draw Function
- App.draw = function(data) {
- if (data.type == "dragstart") {
- App.ctx.beginPath()
- App.ctx.moveTo(data.x,data.y)
- } else if (data.type == "drag") {
- App.ctx.lineTo(data.x,data.y)
- App.ctx.stroke()
- } else {
- App.ctx.stroke()
- App.ctx.closePath()
- }
- }
-
- // Draw from other sockets
- App.socket.on('draw', App.draw)
-
- // Bind click and drag events to drawing and sockets.
- $(function() {
- App.ctx = $('canvas')[0].getContext("2d")
- $('canvas').live('drag dragstart dragend', function(e) {
- offset = $(this).offset()
- data = {
- x: (e.clientX - offset.left),
- y: (e.clientY - offset.top),
- type: e.handleObj.type
- }
- App.draw(data) // Draw yourself.
- App.socket.emit('drawClick', data) // Broadcast draw.
- })
- })
-</script>
-<canvas width="800px" height="400px" style="margin: 0 auto"></canvas>
-```
-
-## Scaling with Redis
-
-__This is a copy-paste example, if redis dependencies installed.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/scaling-with-redis)
-
-If you need to scale your io server past one process, (which hopefully you will). Then you need to take advantage of a pub/sub server. Here is an example using Redis with multiple node processes.
-
-To start, you might need to install redis, here are the [install docs](http://redis.io/topics/quickstart).
-
-Once you have redis installed you need to install the redis node client.
-
-```
-npm install redis
-```
-
-When you run this example, if you have more than one processor, then you should see a log message from the io server for each process.
-
-#### Server (app.js)
-
-```js
-express = require('express.io')
-redis = require('redis')
-RedisStore = express.io.RedisStore
-
-// This is what the workers will do.
-workers = function() {
- app = express().http().io()
-
- // Setup the redis store for scalable io.
- app.io.set('store', new express.io.RedisStore({
- redisPub: redis.createClient(),
- redisSub: redis.createClient(),
- redisClient: redis.createClient()
- }))
-
- // build realtime-web app
-
- app.listen(7076)
-}
-
-// Start forking if you are the master.
-cluster = require('cluster')
-numCPUs = require('os').cpus().length;
-
-if (cluster.isMaster) {
- for (var i = 0; i < numCPUs; i++) { cluster.fork() }
-} else { workers() }
-```
-
-## Scaling with Mongo
-
-*Coming soon!*
View
45 node_modules/express.io/examples/acknowledgements/README.md
@@ -1,45 +0,0 @@
-## Acknowledgements
-
-__This is a copy-paste example.__ [(get the code)](https://github.com/techpines/express.io/tree/master/examples/acknowledgements)
-
-Sometimes you need confirmation or acknowledgement from the server for an io request. To respond from the server you need to call `req.io.respond(data)`.
-
-For this example, go to `localhost:7076` and you should get a pop-up from the acknowledgement.
-
-#### Server (app.js)