├── README.md ├── app.js ├── config ├── development.json ├── production.json ├── runtime.json └── staging.json ├── controllers ├── BlogController.js ├── SiteController.js └── UserController.js ├── lib ├── utils.js └── validator.js ├── models ├── Blog.js └── User.js ├── node_modules ├── .bin │ ├── express │ └── jade ├── async │ ├── .gitmodules │ ├── .npmignore │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── index.js │ ├── lib │ │ └── async.js │ └── package.json ├── config │ ├── .npmignore │ ├── History.md │ ├── LICENSE │ ├── README.md │ ├── doc │ │ ├── 1-protected-test.js.html │ │ ├── 2-config-test.js.html │ │ ├── Config.html │ │ ├── ConfigTest.html │ │ ├── ProtectedTest.html │ │ ├── assets │ │ │ ├── ac-js │ │ │ ├── api-js │ │ │ ├── api.css │ │ │ ├── bg_hd.gif │ │ │ └── reset-fonts-grids-min.css │ │ ├── classmap.js │ │ ├── config.js.html │ │ ├── default.js.html │ │ ├── index.html │ │ ├── index.json │ │ ├── module_config.html │ │ ├── module_test.html │ │ ├── raw.json │ │ └── template │ │ │ ├── assets │ │ │ ├── ac-js │ │ │ ├── api-js │ │ │ ├── api.css │ │ │ ├── bg_hd.gif │ │ │ └── reset-fonts-grids-min.css │ │ │ ├── classmap.tmpl │ │ │ ├── footer.tmpl │ │ │ ├── index.tmpl │ │ │ ├── main.tmpl │ │ │ └── overview.tmpl │ ├── lib │ │ └── config.js │ ├── package.json │ ├── test │ │ ├── 1-protected-test.js │ │ ├── 2-config-test.js │ │ └── config │ │ │ ├── default.coffee │ │ │ ├── default.js │ │ │ ├── default.json │ │ │ ├── default.yaml │ │ │ ├── local-test.json │ │ │ ├── local.yaml │ │ │ ├── runtime.json │ │ │ └── test.yaml │ └── tools │ │ └── gen-docs.sh ├── connect-mongo │ ├── .travis.yml │ ├── Readme.md │ ├── index.js │ ├── lib │ │ └── connect-mongo.js │ ├── node_modules │ │ └── mongodb │ │ │ ├── .travis.yml │ │ │ ├── Makefile │ │ │ ├── external-libs │ │ │ └── bson │ │ │ │ ├── Makefile │ │ │ │ ├── bson.cc │ │ │ │ ├── bson.h │ │ │ │ ├── index.js │ │ │ │ ├── test │ │ │ │ ├── test_bson.js │ │ │ │ ├── test_full_bson.js │ │ │ │ └── test_stackless_bson.js │ │ │ │ └── wscript │ │ │ ├── index.js │ │ │ ├── install.js │ │ │ ├── lib │ │ │ └── mongodb │ │ │ │ ├── admin.js │ │ │ │ ├── collection.js │ │ │ │ ├── commands │ │ │ │ ├── base_command.js │ │ │ │ ├── db_command.js │ │ │ │ ├── delete_command.js │ │ │ │ ├── get_more_command.js │ │ │ │ ├── insert_command.js │ │ │ │ ├── kill_cursor_command.js │ │ │ │ ├── query_command.js │ │ │ │ └── update_command.js │ │ │ │ ├── connection │ │ │ │ ├── connection.js │ │ │ │ ├── connection_pool.js │ │ │ │ ├── connection_utils.js │ │ │ │ ├── repl_set.js │ │ │ │ ├── server.js │ │ │ │ └── strategies │ │ │ │ │ ├── ping_strategy.js │ │ │ │ │ └── statistics_strategy.js │ │ │ │ ├── cursor.js │ │ │ │ ├── cursorstream.js │ │ │ │ ├── db.js │ │ │ │ ├── gridfs │ │ │ │ ├── chunk.js │ │ │ │ ├── grid.js │ │ │ │ ├── gridstore.js │ │ │ │ └── readstream.js │ │ │ │ ├── index.js │ │ │ │ ├── responses │ │ │ │ └── mongo_reply.js │ │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ └── bson │ │ │ │ ├── .travis.yml │ │ │ │ ├── Makefile │ │ │ │ ├── README │ │ │ │ ├── ext │ │ │ │ ├── Makefile │ │ │ │ ├── bson.cc │ │ │ │ ├── bson.h │ │ │ │ ├── index.js │ │ │ │ └── wscript │ │ │ │ ├── install.js │ │ │ │ ├── lib │ │ │ │ └── bson │ │ │ │ │ ├── binary.js │ │ │ │ │ ├── binary_parser.js │ │ │ │ │ ├── bson.js │ │ │ │ │ ├── code.js │ │ │ │ │ ├── db_ref.js │ │ │ │ │ ├── double.js │ │ │ │ │ ├── float_parser.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── long.js │ │ │ │ │ ├── max_key.js │ │ │ │ │ ├── min_key.js │ │ │ │ │ ├── objectid.js │ │ │ │ │ ├── symbol.js │ │ │ │ │ └── timestamp.js │ │ │ │ ├── package.json │ │ │ │ ├── test │ │ │ │ ├── browser │ │ │ │ │ ├── bson_test.js │ │ │ │ │ ├── nodeunit.js │ │ │ │ │ ├── suite2.js │ │ │ │ │ ├── suite3.js │ │ │ │ │ └── test.html │ │ │ │ └── node │ │ │ │ │ ├── bson_array_test.js │ │ │ │ │ ├── bson_parser_comparision_test.js │ │ │ │ │ ├── bson_test.js │ │ │ │ │ ├── bson_typed_array_test.js │ │ │ │ │ ├── data │ │ │ │ │ └── test_gs_weird_bug.png │ │ │ │ │ ├── test_full_bson.js │ │ │ │ │ ├── to_bson_test.js │ │ │ │ │ └── tools │ │ │ │ │ └── utils.js │ │ │ │ └── tools │ │ │ │ ├── gleak.js │ │ │ │ └── jasmine-1.1.0 │ │ │ │ ├── MIT.LICENSE │ │ │ │ ├── jasmine-html.js │ │ │ │ ├── jasmine.css │ │ │ │ ├── jasmine.js │ │ │ │ └── jasmine_favicon.png │ │ │ ├── package.json │ │ │ ├── test_gs_weird_bug_streamed.tmp │ │ │ └── test_gs_working_field_read.tmp │ └── package.json ├── crypto │ ├── .md5.js.un~ │ ├── .package.json.un~ │ ├── .sha1.js.un~ │ ├── History.md │ ├── Readme.md │ ├── md5.js │ ├── package.json │ ├── sha1.js │ └── test │ │ └── test-crypto.js ├── devnull │ ├── .npmignore │ ├── .travis.yml │ ├── LICENSE │ ├── Makefile │ ├── example │ │ ├── logging.js │ │ └── stream.js │ ├── index.js │ ├── lib │ │ └── logger.js │ ├── node_modules │ │ └── colors │ │ │ ├── MIT-LICENSE.txt │ │ │ ├── ReadMe.md │ │ │ ├── colors.js │ │ │ ├── example.html │ │ │ ├── example.js │ │ │ ├── package.json │ │ │ └── test.js │ ├── package.json │ ├── readme.md │ ├── tests │ │ ├── common.js │ │ ├── logger.test.js │ │ ├── mongodb.transport.test.js │ │ └── streamer.transport.test.js │ └── transports │ │ ├── index.js │ │ ├── mongodb.js │ │ ├── stream.js │ │ └── transport.js ├── express │ ├── .npmignore │ ├── .travis.yml │ ├── History.md │ ├── LICENSE │ ├── Makefile │ ├── Readme.md │ ├── bin │ │ └── express │ ├── client.js │ ├── index.js │ ├── lib │ │ ├── application.js │ │ ├── express.js │ │ ├── middleware.js │ │ ├── request.js │ │ ├── response.js │ │ ├── router │ │ │ ├── index.js │ │ │ └── route.js │ │ ├── utils.js │ │ └── view.js │ ├── node_modules │ │ ├── commander │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── commander.js │ │ │ └── package.json │ │ ├── connect │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ ├── cache.js │ │ │ │ ├── connect.js │ │ │ │ ├── index.js │ │ │ │ ├── middleware │ │ │ │ │ ├── basicAuth.js │ │ │ │ │ ├── bodyParser.js │ │ │ │ │ ├── compress.js │ │ │ │ │ ├── cookieParser.js │ │ │ │ │ ├── cookieSession.js │ │ │ │ │ ├── csrf.js │ │ │ │ │ ├── directory.js │ │ │ │ │ ├── errorHandler.js │ │ │ │ │ ├── favicon.js │ │ │ │ │ ├── json.js │ │ │ │ │ ├── limit.js │ │ │ │ │ ├── logger.js │ │ │ │ │ ├── methodOverride.js │ │ │ │ │ ├── multipart.js │ │ │ │ │ ├── query.js │ │ │ │ │ ├── responseTime.js │ │ │ │ │ ├── session.js │ │ │ │ │ ├── session │ │ │ │ │ │ ├── cookie.js │ │ │ │ │ │ ├── memory.js │ │ │ │ │ │ ├── session.js │ │ │ │ │ │ └── store.js │ │ │ │ │ ├── static.js │ │ │ │ │ ├── staticCache.js │ │ │ │ │ ├── timeout.js │ │ │ │ │ ├── urlencoded.js │ │ │ │ │ └── vhost.js │ │ │ │ ├── patch.js │ │ │ │ ├── proto.js │ │ │ │ ├── public │ │ │ │ │ ├── directory.html │ │ │ │ │ ├── error.html │ │ │ │ │ ├── favicon.ico │ │ │ │ │ ├── icons │ │ │ │ │ │ ├── page.png │ │ │ │ │ │ ├── page_add.png │ │ │ │ │ │ ├── page_attach.png │ │ │ │ │ │ ├── page_code.png │ │ │ │ │ │ ├── page_copy.png │ │ │ │ │ │ ├── page_delete.png │ │ │ │ │ │ ├── page_edit.png │ │ │ │ │ │ ├── page_error.png │ │ │ │ │ │ ├── page_excel.png │ │ │ │ │ │ ├── page_find.png │ │ │ │ │ │ ├── page_gear.png │ │ │ │ │ │ ├── page_go.png │ │ │ │ │ │ ├── page_green.png │ │ │ │ │ │ ├── page_key.png │ │ │ │ │ │ ├── page_lightning.png │ │ │ │ │ │ ├── page_link.png │ │ │ │ │ │ ├── page_paintbrush.png │ │ │ │ │ │ ├── page_paste.png │ │ │ │ │ │ ├── page_red.png │ │ │ │ │ │ ├── page_refresh.png │ │ │ │ │ │ ├── page_save.png │ │ │ │ │ │ ├── page_white.png │ │ │ │ │ │ ├── page_white_acrobat.png │ │ │ │ │ │ ├── page_white_actionscript.png │ │ │ │ │ │ ├── page_white_add.png │ │ │ │ │ │ ├── page_white_c.png │ │ │ │ │ │ ├── page_white_camera.png │ │ │ │ │ │ ├── page_white_cd.png │ │ │ │ │ │ ├── page_white_code.png │ │ │ │ │ │ ├── page_white_code_red.png │ │ │ │ │ │ ├── page_white_coldfusion.png │ │ │ │ │ │ ├── page_white_compressed.png │ │ │ │ │ │ ├── page_white_copy.png │ │ │ │ │ │ ├── page_white_cplusplus.png │ │ │ │ │ │ ├── page_white_csharp.png │ │ │ │ │ │ ├── page_white_cup.png │ │ │ │ │ │ ├── page_white_database.png │ │ │ │ │ │ ├── page_white_delete.png │ │ │ │ │ │ ├── page_white_dvd.png │ │ │ │ │ │ ├── page_white_edit.png │ │ │ │ │ │ ├── page_white_error.png │ │ │ │ │ │ ├── page_white_excel.png │ │ │ │ │ │ ├── page_white_find.png │ │ │ │ │ │ ├── page_white_flash.png │ │ │ │ │ │ ├── page_white_freehand.png │ │ │ │ │ │ ├── page_white_gear.png │ │ │ │ │ │ ├── page_white_get.png │ │ │ │ │ │ ├── page_white_go.png │ │ │ │ │ │ ├── page_white_h.png │ │ │ │ │ │ ├── page_white_horizontal.png │ │ │ │ │ │ ├── page_white_key.png │ │ │ │ │ │ ├── page_white_lightning.png │ │ │ │ │ │ ├── page_white_link.png │ │ │ │ │ │ ├── page_white_magnify.png │ │ │ │ │ │ ├── page_white_medal.png │ │ │ │ │ │ ├── page_white_office.png │ │ │ │ │ │ ├── page_white_paint.png │ │ │ │ │ │ ├── page_white_paintbrush.png │ │ │ │ │ │ ├── page_white_paste.png │ │ │ │ │ │ ├── page_white_php.png │ │ │ │ │ │ ├── page_white_picture.png │ │ │ │ │ │ ├── page_white_powerpoint.png │ │ │ │ │ │ ├── page_white_put.png │ │ │ │ │ │ ├── page_white_ruby.png │ │ │ │ │ │ ├── page_white_stack.png │ │ │ │ │ │ ├── page_white_star.png │ │ │ │ │ │ ├── page_white_swoosh.png │ │ │ │ │ │ ├── page_white_text.png │ │ │ │ │ │ ├── page_white_text_width.png │ │ │ │ │ │ ├── page_white_tux.png │ │ │ │ │ │ ├── page_white_vector.png │ │ │ │ │ │ ├── page_white_visualstudio.png │ │ │ │ │ │ ├── page_white_width.png │ │ │ │ │ │ ├── page_white_word.png │ │ │ │ │ │ ├── page_white_world.png │ │ │ │ │ │ ├── page_white_wrench.png │ │ │ │ │ │ ├── page_white_zip.png │ │ │ │ │ │ ├── page_word.png │ │ │ │ │ │ └── page_world.png │ │ │ │ │ └── style.css │ │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ │ ├── bytes │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── component.json │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ ├── formidable │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── TODO │ │ │ │ │ ├── benchmark │ │ │ │ │ │ └── bench-multipart-parser.js │ │ │ │ │ ├── example │ │ │ │ │ │ ├── post.js │ │ │ │ │ │ └── upload.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ │ ├── file.js │ │ │ │ │ │ ├── incoming_form.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── multipart_parser.js │ │ │ │ │ │ ├── querystring_parser.js │ │ │ │ │ │ └── util.js │ │ │ │ │ ├── node-gently │ │ │ │ │ │ ├── Makefile │ │ │ │ │ │ ├── Readme.md │ │ │ │ │ │ ├── example │ │ │ │ │ │ │ ├── dog.js │ │ │ │ │ │ │ └── event_emitter.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── lib │ │ │ │ │ │ │ └── gently │ │ │ │ │ │ │ │ ├── gently.js │ │ │ │ │ │ │ │ └── index.js │ │ │ │ │ │ ├── package.json │ │ │ │ │ │ └── test │ │ │ │ │ │ │ ├── common.js │ │ │ │ │ │ │ └── simple │ │ │ │ │ │ │ └── test-gently.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── test │ │ │ │ │ │ ├── common.js │ │ │ │ │ │ ├── fixture │ │ │ │ │ │ │ ├── file │ │ │ │ │ │ │ │ ├── funkyfilename.txt │ │ │ │ │ │ │ │ └── plain.txt │ │ │ │ │ │ │ ├── http │ │ │ │ │ │ │ │ └── special-chars-in-filename │ │ │ │ │ │ │ │ │ └── info.md │ │ │ │ │ │ │ ├── js │ │ │ │ │ │ │ │ ├── no-filename.js │ │ │ │ │ │ │ │ └── special-chars-in-filename.js │ │ │ │ │ │ │ └── multipart.js │ │ │ │ │ │ ├── integration │ │ │ │ │ │ │ └── test-fixtures.js │ │ │ │ │ │ ├── legacy │ │ │ │ │ │ │ ├── common.js │ │ │ │ │ │ │ ├── integration │ │ │ │ │ │ │ │ └── test-multipart-parser.js │ │ │ │ │ │ │ ├── simple │ │ │ │ │ │ │ │ ├── test-file.js │ │ │ │ │ │ │ │ ├── test-incoming-form.js │ │ │ │ │ │ │ │ ├── test-multipart-parser.js │ │ │ │ │ │ │ │ └── test-querystring-parser.js │ │ │ │ │ │ │ └── system │ │ │ │ │ │ │ │ └── test-multi-video-upload.js │ │ │ │ │ │ ├── run.js │ │ │ │ │ │ └── unit │ │ │ │ │ │ │ └── test-incoming-form.js │ │ │ │ │ └── tool │ │ │ │ │ │ └── record.js │ │ │ │ ├── pause │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── index.js │ │ │ │ │ └── package.json │ │ │ │ └── qs │ │ │ │ │ ├── .gitmodules │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── History.md │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Readme.md │ │ │ │ │ ├── benchmark.js │ │ │ │ │ ├── component.json │ │ │ │ │ ├── examples.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lib │ │ │ │ │ ├── head.js │ │ │ │ │ ├── querystring.js │ │ │ │ │ └── tail.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── querystring.js │ │ │ │ │ └── test │ │ │ │ │ ├── browser │ │ │ │ │ ├── expect.js │ │ │ │ │ ├── index.html │ │ │ │ │ ├── jquery.js │ │ │ │ │ ├── mocha.css │ │ │ │ │ ├── mocha.js │ │ │ │ │ ├── qs.css │ │ │ │ │ └── qs.js │ │ │ │ │ ├── parse.js │ │ │ │ │ └── stringify.js │ │ │ ├── package.json │ │ │ └── test.js │ │ ├── cookie-signature │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── cookie │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── README.md │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── mocha.opts │ │ │ │ ├── parse.js │ │ │ │ └── serialize.js │ │ ├── crc │ │ │ ├── .gitmodules │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── lib │ │ │ │ └── crc.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ └── crc.js │ │ ├── debug │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── debug.component.js │ │ │ ├── debug.js │ │ │ ├── example │ │ │ │ ├── app.js │ │ │ │ ├── browser.html │ │ │ │ ├── wildcards.js │ │ │ │ └── worker.js │ │ │ ├── head.js │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── debug.js │ │ │ ├── package.json │ │ │ └── tail.js │ │ ├── fresh │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── methods │ │ │ ├── index.js │ │ │ └── package.json │ │ ├── mkdirp │ │ │ ├── .gitignore.orig │ │ │ ├── .gitignore.rej │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.markdown │ │ │ ├── examples │ │ │ │ ├── pow.js │ │ │ │ ├── pow.js.orig │ │ │ │ └── pow.js.rej │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── chmod.js │ │ │ │ ├── clobber.js │ │ │ │ ├── mkdirp.js │ │ │ │ ├── perm.js │ │ │ │ ├── perm_sync.js │ │ │ │ ├── race.js │ │ │ │ ├── rel.js │ │ │ │ ├── return.js │ │ │ │ ├── return_sync.js │ │ │ │ ├── root.js │ │ │ │ ├── sync.js │ │ │ │ ├── umask.js │ │ │ │ └── umask_sync.js │ │ ├── range-parser │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ └── package.json │ │ └── send │ │ │ ├── .npmignore │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ ├── send.js │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ └── mime │ │ │ │ ├── LICENSE │ │ │ │ ├── README.md │ │ │ │ ├── mime.js │ │ │ │ ├── package.json │ │ │ │ ├── test.js │ │ │ │ └── types │ │ │ │ ├── mime.types │ │ │ │ └── node.types │ │ │ └── package.json │ ├── package.json │ └── test.js ├── jade │ ├── .npmignore │ ├── LICENSE │ ├── Readme.md │ ├── bin │ │ └── jade │ ├── index.js │ ├── jade.js │ ├── jade.md │ ├── jade.min.js │ ├── lib │ │ ├── compiler.js │ │ ├── doctypes.js │ │ ├── filters.js │ │ ├── inline-tags.js │ │ ├── jade.js │ │ ├── lexer.js │ │ ├── nodes │ │ │ ├── attrs.js │ │ │ ├── block-comment.js │ │ │ ├── block.js │ │ │ ├── case.js │ │ │ ├── code.js │ │ │ ├── comment.js │ │ │ ├── doctype.js │ │ │ ├── each.js │ │ │ ├── filter.js │ │ │ ├── index.js │ │ │ ├── literal.js │ │ │ ├── mixin.js │ │ │ ├── node.js │ │ │ ├── tag.js │ │ │ └── text.js │ │ ├── parser.js │ │ ├── runtime.js │ │ ├── self-closing.js │ │ └── utils.js │ ├── node_modules │ │ ├── .bin │ │ │ ├── cake │ │ │ └── coffee │ │ ├── coffee-script │ │ │ ├── .npmignore │ │ │ ├── CNAME │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README │ │ │ ├── Rakefile │ │ │ ├── bin │ │ │ │ ├── cake │ │ │ │ └── coffee │ │ │ ├── extras │ │ │ │ └── jsl.conf │ │ │ ├── lib │ │ │ │ └── coffee-script │ │ │ │ │ ├── browser.js │ │ │ │ │ ├── cake.js │ │ │ │ │ ├── coffee-script.js │ │ │ │ │ ├── command.js │ │ │ │ │ ├── grammar.js │ │ │ │ │ ├── helpers.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── lexer.js │ │ │ │ │ ├── nodes.js │ │ │ │ │ ├── optparse.js │ │ │ │ │ ├── parser.js │ │ │ │ │ ├── repl.js │ │ │ │ │ ├── rewriter.js │ │ │ │ │ └── scope.js │ │ │ └── package.json │ │ ├── commander │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── lib │ │ │ │ └── commander.js │ │ │ └── package.json │ │ └── mkdirp │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.markdown │ │ │ ├── examples │ │ │ └── pow.js │ │ │ ├── index.js │ │ │ ├── package.json │ │ │ └── test │ │ │ ├── chmod.js │ │ │ ├── clobber.js │ │ │ ├── mkdirp.js │ │ │ ├── perm.js │ │ │ ├── perm_sync.js │ │ │ ├── race.js │ │ │ ├── rel.js │ │ │ ├── return.js │ │ │ ├── return_sync.js │ │ │ ├── root.js │ │ │ ├── sync.js │ │ │ ├── umask.js │ │ │ └── umask_sync.js │ ├── package.json │ ├── runtime.js │ └── runtime.min.js ├── mongoose │ ├── .npmignore │ ├── .travis.yml │ ├── CONTRIBUTING.md │ ├── History.md │ ├── README.md │ ├── examples │ │ └── schema.js │ ├── index.js │ ├── lib │ │ ├── collection.js │ │ ├── connection.js │ │ ├── connectionstate.js │ │ ├── document.js │ │ ├── drivers │ │ │ └── node-mongodb-native │ │ │ │ ├── binary.js │ │ │ │ ├── collection.js │ │ │ │ ├── connection.js │ │ │ │ └── objectid.js │ │ ├── error.js │ │ ├── errors │ │ │ ├── cast.js │ │ │ ├── document.js │ │ │ ├── validation.js │ │ │ └── validator.js │ │ ├── index.js │ │ ├── model.js │ │ ├── namedscope.js │ │ ├── promise.js │ │ ├── query.js │ │ ├── querystream.js │ │ ├── schema.js │ │ ├── schema │ │ │ ├── array.js │ │ │ ├── boolean.js │ │ │ ├── buffer.js │ │ │ ├── date.js │ │ │ ├── documentarray.js │ │ │ ├── index.js │ │ │ ├── mixed.js │ │ │ ├── number.js │ │ │ ├── objectid.js │ │ │ └── string.js │ │ ├── schemadefault.js │ │ ├── schematype.js │ │ ├── statemachine.js │ │ ├── types │ │ │ ├── array.js │ │ │ ├── buffer.js │ │ │ ├── documentarray.js │ │ │ ├── embedded.js │ │ │ ├── index.js │ │ │ └── objectid.js │ │ ├── utils.js │ │ └── virtualtype.js │ ├── node_modules │ │ ├── hooks │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── hooks.alt.js │ │ │ ├── hooks.js │ │ │ ├── package.json │ │ │ └── test.js │ │ ├── mongodb │ │ │ ├── .coverage_data │ │ │ │ ├── 0 │ │ │ │ │ └── rcover_25163e6a55918dcd173169fce774c5db │ │ │ │ ├── 1 │ │ │ │ │ └── rcover_4e6a938eeb7a2140d74cc6592a1df80f │ │ │ │ ├── 2 │ │ │ │ │ └── rcover_c0fa5143fae18cedd03472cd9e36e716 │ │ │ │ ├── 3 │ │ │ │ │ └── rcover_1eb81841e8beb3826888bc35f55ca43e │ │ │ │ ├── 4 │ │ │ │ │ └── rcover_4819e1c485c8c45ca909a74290d71f15 │ │ │ │ └── 5 │ │ │ │ │ └── rcover_d0f874bef13944e2ec9f363f43a76255 │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── Makefile │ │ │ ├── Readme.md │ │ │ ├── index.js │ │ │ ├── install.js │ │ │ ├── lib │ │ │ │ └── mongodb │ │ │ │ │ ├── admin.js │ │ │ │ │ ├── collection.js │ │ │ │ │ ├── commands │ │ │ │ │ ├── base_command.js │ │ │ │ │ ├── db_command.js │ │ │ │ │ ├── delete_command.js │ │ │ │ │ ├── get_more_command.js │ │ │ │ │ ├── insert_command.js │ │ │ │ │ ├── kill_cursor_command.js │ │ │ │ │ ├── query_command.js │ │ │ │ │ └── update_command.js │ │ │ │ │ ├── connection │ │ │ │ │ ├── connection.js │ │ │ │ │ ├── connection_pool.js │ │ │ │ │ ├── connection_utils.js │ │ │ │ │ ├── mongos.js │ │ │ │ │ ├── read_preference.js │ │ │ │ │ ├── repl_set.js │ │ │ │ │ ├── server.js │ │ │ │ │ └── strategies │ │ │ │ │ │ ├── ping_strategy.js │ │ │ │ │ │ └── statistics_strategy.js │ │ │ │ │ ├── cursor.js │ │ │ │ │ ├── cursorstream.js │ │ │ │ │ ├── db.js │ │ │ │ │ ├── gridfs │ │ │ │ │ ├── chunk.js │ │ │ │ │ ├── grid.js │ │ │ │ │ ├── gridstore.js │ │ │ │ │ └── readstream.js │ │ │ │ │ ├── index.js │ │ │ │ │ ├── responses │ │ │ │ │ └── mongo_reply.js │ │ │ │ │ └── utils.js │ │ │ ├── node_modules │ │ │ │ └── bson │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── README.md │ │ │ │ │ ├── benchmarks │ │ │ │ │ └── benchmarks.js │ │ │ │ │ ├── binding.gyp │ │ │ │ │ ├── build │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── Release │ │ │ │ │ │ ├── .deps │ │ │ │ │ │ │ └── Release │ │ │ │ │ │ │ │ ├── bson.node.d │ │ │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ │ ├── bson.node.d │ │ │ │ │ │ │ │ └── bson │ │ │ │ │ │ │ │ └── ext │ │ │ │ │ │ │ │ └── bson.o.d │ │ │ │ │ │ ├── bson.node │ │ │ │ │ │ ├── linker.lock │ │ │ │ │ │ └── obj.target │ │ │ │ │ │ │ ├── bson.node │ │ │ │ │ │ │ └── bson │ │ │ │ │ │ │ └── ext │ │ │ │ │ │ │ └── bson.o │ │ │ │ │ ├── binding.Makefile │ │ │ │ │ ├── bson.target.mk │ │ │ │ │ └── config.gypi │ │ │ │ │ ├── ext │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── bson.cc │ │ │ │ │ ├── bson.h │ │ │ │ │ ├── index.js │ │ │ │ │ ├── win32 │ │ │ │ │ │ ├── ia32 │ │ │ │ │ │ │ └── bson.node │ │ │ │ │ │ └── x64 │ │ │ │ │ │ │ └── bson.node │ │ │ │ │ └── wscript │ │ │ │ │ ├── install.js │ │ │ │ │ ├── lib │ │ │ │ │ └── bson │ │ │ │ │ │ ├── binary.js │ │ │ │ │ │ ├── binary_parser.js │ │ │ │ │ │ ├── bson.js │ │ │ │ │ │ ├── code.js │ │ │ │ │ │ ├── db_ref.js │ │ │ │ │ │ ├── double.js │ │ │ │ │ │ ├── float_parser.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── long.js │ │ │ │ │ │ ├── max_key.js │ │ │ │ │ │ ├── min_key.js │ │ │ │ │ │ ├── objectid.js │ │ │ │ │ │ ├── symbol.js │ │ │ │ │ │ └── timestamp.js │ │ │ │ │ ├── package.json │ │ │ │ │ ├── test │ │ │ │ │ ├── browser │ │ │ │ │ │ ├── bson_test.js │ │ │ │ │ │ ├── nodeunit.js │ │ │ │ │ │ ├── suite2.js │ │ │ │ │ │ ├── suite3.js │ │ │ │ │ │ └── test.html │ │ │ │ │ └── node │ │ │ │ │ │ ├── bson_array_test.js │ │ │ │ │ │ ├── bson_parser_comparision_test.js │ │ │ │ │ │ ├── bson_test.js │ │ │ │ │ │ ├── bson_typed_array_test.js │ │ │ │ │ │ ├── data │ │ │ │ │ │ └── test_gs_weird_bug.png │ │ │ │ │ │ ├── test_full_bson.js │ │ │ │ │ │ ├── to_bson_test.js │ │ │ │ │ │ └── tools │ │ │ │ │ │ └── utils.js │ │ │ │ │ └── tools │ │ │ │ │ ├── gleak.js │ │ │ │ │ └── jasmine-1.1.0 │ │ │ │ │ ├── MIT.LICENSE │ │ │ │ │ ├── jasmine-html.js │ │ │ │ │ ├── jasmine.css │ │ │ │ │ ├── jasmine.js │ │ │ │ │ └── jasmine_favicon.png │ │ │ └── package.json │ │ ├── ms │ │ │ ├── .npmignore │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── ms.js │ │ │ ├── package.json │ │ │ └── test │ │ │ │ ├── index.html │ │ │ │ ├── support │ │ │ │ └── jquery.js │ │ │ │ └── test.js │ │ └── sliced │ │ │ ├── .npmignore │ │ │ ├── .travis.yml │ │ │ ├── History.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── bench.js │ │ │ ├── index.js │ │ │ ├── lib │ │ │ └── sliced.js │ │ │ ├── package.json │ │ │ └── test │ │ │ └── index.js │ ├── package.json │ ├── static.js │ └── website.js ├── underscore │ ├── .npmignore │ ├── CNAME │ ├── CONTRIBUTING.md │ ├── LICENSE │ ├── README.md │ ├── favicon.ico │ ├── index.html │ ├── index.js │ ├── package.json │ ├── raw │ │ └── underscore.psd │ ├── underscore-min.js │ └── underscore.js └── util │ ├── node_modules │ └── events.node │ │ ├── events.js │ │ └── package.json │ ├── package.json │ └── util.js ├── package.json ├── public ├── assets │ ├── css │ │ ├── bootstrap-responsive.css │ │ ├── bootstrap.css │ │ └── docs.css │ ├── ico │ │ ├── apple-touch-icon-114-precomposed.png │ │ ├── apple-touch-icon-144-precomposed.png │ │ ├── apple-touch-icon-57-precomposed.png │ │ ├── apple-touch-icon-72-precomposed.png │ │ └── favicon.ico │ ├── img │ │ ├── bootstrap-mdo-sfmoma-01.jpg │ │ ├── bootstrap-mdo-sfmoma-02.jpg │ │ ├── bootstrap-mdo-sfmoma-03.jpg │ │ ├── bs-docs-bootstrap-features.png │ │ ├── bs-docs-masthead-pattern.png │ │ ├── bs-docs-responsive-illustrations.png │ │ ├── bs-docs-twitter-github.png │ │ ├── example-sites │ │ │ ├── 8020select.png │ │ │ ├── adoptahydrant.png │ │ │ ├── breakingnews.png │ │ │ ├── fleetio.png │ │ │ ├── gathercontent.png │ │ │ ├── jshint.png │ │ │ ├── kippt.png │ │ │ └── soundready.png │ │ ├── examples │ │ │ ├── bootstrap-example-carousel.png │ │ │ ├── bootstrap-example-fluid.jpg │ │ │ ├── bootstrap-example-hero.jpg │ │ │ ├── bootstrap-example-marketing-narrow.png │ │ │ ├── bootstrap-example-signin.png │ │ │ ├── bootstrap-example-starter.jpg │ │ │ ├── bootstrap-example-sticky-footer.png │ │ │ ├── browser-icon-chrome.png │ │ │ ├── browser-icon-firefox.png │ │ │ ├── browser-icon-safari.png │ │ │ ├── slide-01.jpg │ │ │ ├── slide-02.jpg │ │ │ └── slide-03.jpg │ │ ├── glyphicons-halflings-white.png │ │ ├── glyphicons-halflings.png │ │ ├── grid-baseline-20px.png │ │ ├── less-logo-large.png │ │ └── responsive-illustrations.png │ └── js │ │ ├── README.md │ │ ├── application.js │ │ ├── bootstrap-affix.js │ │ ├── bootstrap-alert.js │ │ ├── bootstrap-button.js │ │ ├── bootstrap-carousel.js │ │ ├── bootstrap-collapse.js │ │ ├── bootstrap-dropdown.js │ │ ├── bootstrap-modal.js │ │ ├── bootstrap-popover.js │ │ ├── bootstrap-scrollspy.js │ │ ├── bootstrap-tab.js │ │ ├── bootstrap-tooltip.js │ │ ├── bootstrap-transition.js │ │ ├── bootstrap-typeahead.js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ ├── google-code-prettify │ │ ├── prettify.css │ │ └── prettify.js │ │ └── jquery.js ├── images │ ├── bootstrap.png │ ├── express-logo.png │ └── jade-logo.png └── stylesheets │ └── style.css └── views ├── 403.jade ├── 404.jade ├── 500.jade ├── blog-detail.jade ├── blog-list.jade ├── blog-new.jade ├── index.jade ├── layout.jade ├── login.jade └── register.jade /config/development.json: -------------------------------------------------------------------------------- 1 | { 2 | "db": { 3 | "USER": "test", 4 | "PASS": "123456", 5 | "HOST": "localhost", 6 | "PORT": "", 7 | "DATABASE": "blog" 8 | } 9 | } -------------------------------------------------------------------------------- /config/production.json: -------------------------------------------------------------------------------- 1 | { 2 | "db": { 3 | "USER": "test", 4 | "PASS": "test", 5 | "HOST": "localhost", 6 | "PORT": "", 7 | "DATABASE": "blog" 8 | } 9 | } -------------------------------------------------------------------------------- /config/runtime.json: -------------------------------------------------------------------------------- 1 | { 2 | "db": { 3 | "USER": "test", 4 | "PASS": "test", 5 | "HOST": "localhost", 6 | "PORT": "", 7 | "DATABASE": "blog" 8 | } 9 | } -------------------------------------------------------------------------------- /config/staging.json: -------------------------------------------------------------------------------- 1 | { 2 | "db": { 3 | "USER": "test", 4 | "PASS": "test", 5 | "HOST": "localhost", 6 | "PORT": "", 7 | "DATABASE": "blog" 8 | } 9 | } -------------------------------------------------------------------------------- /controllers/SiteController.js: -------------------------------------------------------------------------------- 1 | var util = require('util'); 2 | var Logger = require('devnull'); 3 | var logger = new Logger({namespacing : 0}); 4 | 5 | SiteController = function (app, mongoose, config) { 6 | app.get('/?', function(req, res, next) { 7 | res.render('index', { 8 | title: "Simple Blog Example With Express, Jade, Mongoose" 9 | }); 10 | }); 11 | 12 | app.get('/404/?', function(req, res, next) { 13 | next(); 14 | }); 15 | 16 | app.get('/403/?', function(req, res, next){ 17 | var err = new Error('not allowed!'); 18 | err.status = 403; 19 | next(err); 20 | }); 21 | 22 | app.get('/500/?', function(req, res, next) { 23 | next(new Error('Technical error occured')); 24 | }); 25 | } 26 | 27 | module.exports = SiteController; -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- 1 | var async = require('async'), 2 | ENV = process.env.NODE_ENV || 'development', 3 | crypto = require('crypto'), 4 | utils; 5 | 6 | utils = { 7 | connectToDatabase:function (mongoose, config, cb) { 8 | var dbPath; 9 | 10 | dbPath = "mongodb://" + config.USER + ":"; 11 | dbPath += config.PASS + "@"; 12 | dbPath += config.HOST + ((config.PORT.length > 0) ? ":" : ""); 13 | dbPath += config.PORT + "/"; 14 | dbPath += config.DATABASE; 15 | return mongoose.connect(dbPath, cb); 16 | }, 17 | mongoStoreConnectionArgs:function (config, cb) { 18 | return { 19 | db: config.DATABASE, 20 | host: config.HOST, 21 | port: config.PORT, 22 | username: config.USER, 23 | password: config.PASS }; 24 | }, 25 | dbConnectionUrl: function (config, cb) { 26 | var dbPath; 27 | 28 | dbPath = "mongodb://" + config.USER + ":"; 29 | dbPath += config.PASS + "@"; 30 | dbPath += config.HOST + ":"; 31 | dbPath += config.PORT + "/"; 32 | dbPath += config.DATABASE; 33 | 34 | return dbPath; 35 | } 36 | }; 37 | module.exports = utils; 38 | -------------------------------------------------------------------------------- /lib/validator.js: -------------------------------------------------------------------------------- 1 | var _ = require('underscore'); 2 | 3 | module.exports = function(opts) { 4 | return function(val) { 5 | 6 | if (!val) { return false; } 7 | if (opts.isEmail && !(/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/.test(val))) { 8 | return false; 9 | } 10 | if (opts.isUsername && !(/^[a-zA-Z0-9]{4,20}$/.test(val))) { 11 | return false; 12 | } 13 | if (opts.length && opts.length.min && opts.length.min !== 0 && opts.length.max) { 14 | if (val.length < opts.length.min || val.length > opts.length.max) { return false; } 15 | } 16 | 17 | return true; 18 | }; 19 | }; 20 | -------------------------------------------------------------------------------- /node_modules/.bin/express: -------------------------------------------------------------------------------- 1 | ../express/bin/express -------------------------------------------------------------------------------- /node_modules/.bin/jade: -------------------------------------------------------------------------------- 1 | ../jade/bin/jade -------------------------------------------------------------------------------- /node_modules/async/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "deps/nodeunit"] 2 | path = deps/nodeunit 3 | url = git://github.com/caolan/nodeunit.git 4 | [submodule "deps/UglifyJS"] 5 | path = deps/UglifyJS 6 | url = https://github.com/mishoo/UglifyJS.git 7 | [submodule "deps/nodelint"] 8 | path = deps/nodelint 9 | url = https://github.com/tav/nodelint.git 10 | -------------------------------------------------------------------------------- /node_modules/async/.npmignore: -------------------------------------------------------------------------------- 1 | deps 2 | dist 3 | test 4 | nodelint.cfg -------------------------------------------------------------------------------- /node_modules/async/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Caolan McMahon 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/async/Makefile: -------------------------------------------------------------------------------- 1 | PACKAGE = asyncjs 2 | NODEJS = $(if $(shell test -f /usr/bin/nodejs && echo "true"),nodejs,node) 3 | CWD := $(shell pwd) 4 | NODEUNIT = $(CWD)/node_modules/nodeunit/bin/nodeunit 5 | UGLIFY = $(CWD)/node_modules/uglify-js/bin/uglifyjs 6 | NODELINT = $(CWD)/node_modules/nodelint/nodelint 7 | 8 | BUILDDIR = dist 9 | 10 | all: clean test build 11 | 12 | build: $(wildcard lib/*.js) 13 | mkdir -p $(BUILDDIR) 14 | $(UGLIFY) lib/async.js > $(BUILDDIR)/async.min.js 15 | 16 | test: 17 | $(NODEUNIT) test 18 | 19 | clean: 20 | rm -rf $(BUILDDIR) 21 | 22 | lint: 23 | $(NODELINT) --config nodelint.cfg lib/async.js 24 | 25 | .PHONY: test build all 26 | -------------------------------------------------------------------------------- /node_modules/async/index.js: -------------------------------------------------------------------------------- 1 | // This file is just added for convenience so this repository can be 2 | // directly checked out into a project's deps folder 3 | module.exports = require('./lib/async'); 4 | -------------------------------------------------------------------------------- /node_modules/config/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/config/LICENSE: -------------------------------------------------------------------------------- 1 | // Copyright 2012, Loren West and other contributors 2 | 3 | // Permission is hereby granted, free of charge, to any person obtaining a copy 4 | // of this software and associated documentation files (the "Software"), to 5 | // deal in the Software without restriction, including without limitation the 6 | // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or 7 | // sell copies of the Software, and to permit persons to whom the Software is 8 | // furnished to do so, subject to the following conditions: 9 | // 10 | // The above copyright notice and this permission notice shall be included in 11 | // all copies or substantial portions of the Software. 12 | // 13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 18 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS 19 | // IN THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/config/doc/assets/bg_hd.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/config/doc/assets/bg_hd.gif -------------------------------------------------------------------------------- /node_modules/config/doc/classmap.js: -------------------------------------------------------------------------------- 1 | YAHOO.env.classMap = {"ConfigTest": "test", "Config": "config", "ProtectedTest": "test"}; 2 | 3 | YAHOO.env.resolveClass = function(className) { 4 | var a=className.split('.'), ns=YAHOO.env.classMap; 5 | 6 | for (var i=0; igithub under the Apache License 2.0 2 | version $version 3 | -------------------------------------------------------------------------------- /node_modules/config/doc/template/index.tmpl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /node_modules/config/test/config/default.coffee: -------------------------------------------------------------------------------- 1 | module.exports = 2 | AnotherModule: parm3: "value3" 3 | Customers: 4 | dbName: "from_default_coffee" 5 | -------------------------------------------------------------------------------- /node_modules/config/test/config/default.js: -------------------------------------------------------------------------------- 1 | // Common configuration parameters 2 | module.exports = { 3 | TestModule: { 4 | parm1:"value1" 5 | }, 6 | Customers: { 7 | dbHost:'base', 8 | dbName:'from_default_js' 9 | } 10 | }; 11 | -------------------------------------------------------------------------------- /node_modules/config/test/config/default.json: -------------------------------------------------------------------------------- 1 | { 2 | "Customers": { 3 | "dbName":"from_default_json", 4 | "dbPassword":"password will be overwritten.", 5 | "dbPassword2":"password will be overwritten." 6 | }, 7 | "AnotherModule": { 8 | "parm1":"value1" 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /node_modules/config/test/config/default.yaml: -------------------------------------------------------------------------------- 1 | # Example of the baseline configuration in YAML 2 | 3 | Customers: 4 | dbPort: 5984 5 | dbName: from_default_yaml 6 | 7 | AnotherModule: 8 | parm2: value2 9 | 10 | -------------------------------------------------------------------------------- /node_modules/config/test/config/local-test.json: -------------------------------------------------------------------------------- 1 | { 2 | "Customers": { 3 | "dbPassword2":"another password" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /node_modules/config/test/config/local.yaml: -------------------------------------------------------------------------------- 1 | 2 | Customers: 3 | dbPassword: real password 4 | 5 | -------------------------------------------------------------------------------- /node_modules/config/test/config/runtime.json: -------------------------------------------------------------------------------- 1 | { 2 | "TestModule": { 3 | "parm3": 1234 4 | }, 5 | "Customers": { 6 | "dbName": "override_from_runtime_json" 7 | }, 8 | "watchThisValue": 30913 9 | } -------------------------------------------------------------------------------- /node_modules/config/test/config/test.yaml: -------------------------------------------------------------------------------- 1 | # This is loaded if $NODE_ENV=test 2 | 3 | Customers: 4 | dbPort: 5999 5 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | - 0.8 -------------------------------------------------------------------------------- /node_modules/connect-mongo/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.CONNECT_MONGO_COV 3 | ? require('./lib-cov/connect-mongo') 4 | : require('./lib/connect-mongo'); -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | - 0.7 # development version of 0.8, may be unstable -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/external-libs/bson/index.js: -------------------------------------------------------------------------------- 1 | var bson = require('./bson'); 2 | exports.BSON = bson.BSON; 3 | exports.Long = require('../../lib/mongodb/bson/long').Long; 4 | exports.ObjectID = require('../../lib/mongodb/bson/objectid').ObjectID; 5 | exports.DBRef = require('../../lib/mongodb/bson/db_ref').DBRef; 6 | exports.Code = require('../../lib/mongodb/bson/code').Code; 7 | exports.Timestamp = require('../../lib/mongodb/bson/timestamp').Timestamp; 8 | exports.Binary = require('../../lib/mongodb/bson/binary').Binary; 9 | exports.Double = require('../../lib/mongodb/bson/double').Double; 10 | exports.MaxKey = require('../../lib/mongodb/bson/max_key').MaxKey; 11 | exports.MinKey = require('../../lib/mongodb/bson/min_key').MinKey; 12 | exports.Symbol = require('../../lib/mongodb/bson/symbol').Symbol; 13 | 14 | // Just add constants tot he Native BSON parser 15 | exports.BSON.BSON_BINARY_SUBTYPE_DEFAULT = 0; 16 | exports.BSON.BSON_BINARY_SUBTYPE_FUNCTION = 1; 17 | exports.BSON.BSON_BINARY_SUBTYPE_BYTE_ARRAY = 2; 18 | exports.BSON.BSON_BINARY_SUBTYPE_UUID = 3; 19 | exports.BSON.BSON_BINARY_SUBTYPE_MD5 = 4; 20 | exports.BSON.BSON_BINARY_SUBTYPE_USER_DEFINED = 128; 21 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/mongodb'); 2 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/lib/mongodb/commands/base_command.js: -------------------------------------------------------------------------------- 1 | /** 2 | Base object used for common functionality 3 | **/ 4 | var BaseCommand = exports.BaseCommand = function() { 5 | }; 6 | 7 | var id = 1; 8 | BaseCommand.prototype.getRequestId = function() { 9 | if (!this.requestId) this.requestId = id++; 10 | return this.requestId; 11 | }; 12 | 13 | BaseCommand.prototype.updateRequestId = function() { 14 | this.requestId = id++; 15 | return this.requestId; 16 | }; 17 | 18 | // OpCodes 19 | BaseCommand.OP_REPLY = 1; 20 | BaseCommand.OP_MSG = 1000; 21 | BaseCommand.OP_UPDATE = 2001; 22 | BaseCommand.OP_INSERT = 2002; 23 | BaseCommand.OP_GET_BY_OID = 2003; 24 | BaseCommand.OP_QUERY = 2004; 25 | BaseCommand.OP_GET_MORE = 2005; 26 | BaseCommand.OP_DELETE = 2006; 27 | BaseCommand.OP_KILL_CURSORS = 2007; -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | - 0.7 # development version of 0.8, may be unstable -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | NPM = npm 3 | NODEUNIT = node_modules/nodeunit/bin/nodeunit 4 | name = all 5 | 6 | total: build_native 7 | 8 | test: build_native 9 | $(NODEUNIT) ./test/node 10 | TEST_NATIVE=TRUE $(NODEUNIT) ./test/node 11 | 12 | build_native: 13 | $(MAKE) -C ./ext all 14 | 15 | build_native_debug: 16 | $(MAKE) -C ./ext all_debug 17 | 18 | build_native_clang: 19 | $(MAKE) -C ./ext clang 20 | 21 | build_native_clang_debug: 22 | $(MAKE) -C ./ext clang_debug 23 | 24 | clean_native: 25 | $(MAKE) -C ./ext clean 26 | 27 | clean: 28 | rm ./ext/bson.node 29 | rm -r ./ext/build 30 | 31 | .PHONY: total 32 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/README -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/ext/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | name = all 3 | JOBS = 1 4 | 5 | all: 6 | rm -rf build .lock-wscript bson.node 7 | node-waf configure build 8 | cp -R ./build/Release/bson.node . || true 9 | 10 | all_debug: 11 | rm -rf build .lock-wscript bson.node 12 | node-waf --debug configure build 13 | cp -R ./build/Release/bson.node . || true 14 | 15 | clang: 16 | rm -rf build .lock-wscript bson.node 17 | CXX=clang node-waf configure build 18 | cp -R ./build/Release/bson.node . || true 19 | 20 | clang_debug: 21 | rm -rf build .lock-wscript bson.node 22 | CXX=clang node-waf --debug configure build 23 | cp -R ./build/Release/bson.node . || true 24 | 25 | clean: 26 | rm -rf build .lock-wscript bson.node 27 | 28 | .PHONY: all -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/ext/index.js: -------------------------------------------------------------------------------- 1 | var bson = require('./bson'); 2 | exports.BSON = bson.BSON; 3 | exports.Long = require('../lib/bson/long').Long; 4 | exports.ObjectID = require('../lib/bson/objectid').ObjectID; 5 | exports.DBRef = require('../lib/bson/db_ref').DBRef; 6 | exports.Code = require('../lib/bson/code').Code; 7 | exports.Timestamp = require('../lib/bson/timestamp').Timestamp; 8 | exports.Binary = require('../lib/bson/binary').Binary; 9 | exports.Double = require('../lib/bson/double').Double; 10 | exports.MaxKey = require('../lib/bson/max_key').MaxKey; 11 | exports.MinKey = require('../lib/bson/min_key').MinKey; 12 | exports.Symbol = require('../lib/bson/symbol').Symbol; 13 | 14 | // Just add constants tot he Native BSON parser 15 | exports.BSON.BSON_BINARY_SUBTYPE_DEFAULT = 0; 16 | exports.BSON.BSON_BINARY_SUBTYPE_FUNCTION = 1; 17 | exports.BSON.BSON_BINARY_SUBTYPE_BYTE_ARRAY = 2; 18 | exports.BSON.BSON_BINARY_SUBTYPE_UUID = 3; 19 | exports.BSON.BSON_BINARY_SUBTYPE_MD5 = 4; 20 | exports.BSON.BSON_BINARY_SUBTYPE_USER_DEFINED = 128; 21 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/lib/bson/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Code type. 3 | * 4 | * @class Represents the BSON Code type. 5 | * @param {String|Function} code a string or function. 6 | * @param {Object} [scope] an optional scope for the function. 7 | * @return {Code} 8 | */ 9 | function Code(code, scope) { 10 | if(!(this instanceof Code)) return new Code(code, scope); 11 | 12 | this._bsontype = 'Code'; 13 | this.code = code; 14 | this.scope = scope == null ? {} : scope; 15 | }; 16 | 17 | /** 18 | * @ignore 19 | * @api private 20 | */ 21 | Code.prototype.toJSON = function() { 22 | return {scope:this.scope, code:this.code}; 23 | } 24 | 25 | if(typeof window === 'undefined') { 26 | exports.Code = Code; 27 | } -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/lib/bson/db_ref.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON DBRef type. 3 | * 4 | * @class Represents the BSON DBRef type. 5 | * @param {String} namespace the collection name. 6 | * @param {ObjectID} oid the reference ObjectID. 7 | * @param {String} [db] optional db name, if omitted the reference is local to the current db. 8 | * @return {DBRef} 9 | */ 10 | function DBRef(namespace, oid, db) { 11 | if(!(this instanceof DBRef)) return new DBRef(namespace, oid, db); 12 | 13 | this._bsontype = 'DBRef'; 14 | this.namespace = namespace; 15 | this.oid = oid; 16 | this.db = db; 17 | }; 18 | 19 | /** 20 | * @ignore 21 | * @api private 22 | */ 23 | DBRef.prototype.toJSON = function() { 24 | return { 25 | '$ref':this.namespace, 26 | '$id':this.oid, 27 | '$db':this.db == null ? '' : this.db 28 | }; 29 | } 30 | 31 | if(typeof window === 'undefined') { 32 | exports.DBRef = DBRef; 33 | } -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/lib/bson/double.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Double type. 3 | * 4 | * @class Represents the BSON Double type. 5 | * @param {Number} value the number we want to represent as a double. 6 | * @return {Double} 7 | */ 8 | function Double(value) { 9 | if(!(this instanceof Double)) return new Double(value); 10 | 11 | this._bsontype = 'Double'; 12 | this.value = value; 13 | } 14 | 15 | /** 16 | * Access the number value. 17 | * 18 | * @return {Number} returns the wrapped double number. 19 | * @api public 20 | */ 21 | Double.prototype.valueOf = function() { 22 | return this.value; 23 | }; 24 | 25 | /** 26 | * @ignore 27 | * @api private 28 | */ 29 | Double.prototype.toJSON = function() { 30 | return this.value; 31 | } 32 | 33 | if(typeof window === 'undefined') { 34 | exports.Double = Double; 35 | } -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/lib/bson/max_key.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON MaxKey type. 3 | * 4 | * @class Represents the BSON MaxKey type. 5 | * @return {MaxKey} 6 | */ 7 | function MaxKey() { 8 | if(!(this instanceof MaxKey)) return new MaxKey(); 9 | 10 | this._bsontype = 'MaxKey'; 11 | } 12 | 13 | if(typeof window === 'undefined') { 14 | exports.MaxKey = MaxKey; 15 | } -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/lib/bson/min_key.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON MinKey type. 3 | * 4 | * @class Represents the BSON MinKey type. 5 | * @return {MinKey} 6 | */ 7 | function MinKey() { 8 | if(!(this instanceof MinKey)) return new MinKey(); 9 | 10 | this._bsontype = 'MinKey'; 11 | } 12 | 13 | if(typeof window === 'undefined') { 14 | exports.MinKey = MinKey; 15 | } -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/lib/bson/symbol.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Symbol type. 3 | * 4 | * @class Represents the BSON Symbol type. 5 | * @param {String} value the string representing the symbol. 6 | * @return {Symbol} 7 | */ 8 | function Symbol(value) { 9 | if(!(this instanceof Symbol)) return new Symbol(value); 10 | this._bsontype = 'Symbol'; 11 | this.value = value; 12 | } 13 | 14 | /** 15 | * Access the wrapped string value. 16 | * 17 | * @return {String} returns the wrapped string. 18 | * @api public 19 | */ 20 | Symbol.prototype.valueOf = function() { 21 | return this.value; 22 | }; 23 | 24 | /** 25 | * @ignore 26 | * @api private 27 | */ 28 | Symbol.prototype.toString = function() { 29 | return this.value; 30 | } 31 | 32 | /** 33 | * @ignore 34 | * @api private 35 | */ 36 | Symbol.prototype.inspect = function() { 37 | return this.value; 38 | } 39 | 40 | /** 41 | * @ignore 42 | * @api private 43 | */ 44 | Symbol.prototype.toJSON = function() { 45 | return this.value; 46 | } 47 | 48 | if(typeof window === 'undefined') { 49 | exports.Symbol = Symbol; 50 | } -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/test/browser/suite2.js: -------------------------------------------------------------------------------- 1 | this.suite2 = { 2 | 'another test': function (test) { 3 | setTimeout(function () { 4 | // lots of assertions 5 | test.ok(true, 'everythings ok'); 6 | test.ok(true, 'everythings ok'); 7 | test.ok(true, 'everythings ok'); 8 | test.ok(true, 'everythings ok'); 9 | test.ok(true, 'everythings ok'); 10 | test.done(); 11 | }, 10); 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/test/browser/suite3.js: -------------------------------------------------------------------------------- 1 | this.suite3 = { 2 | 'test for ie6,7,8': function (test) { 3 | test.deepEqual(["test"], ["test"]); 4 | test.notDeepEqual(["a"], ["b"]); 5 | test.done(); 6 | } 7 | }; 8 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/test/browser/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Example tests 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/test/node/data/test_gs_weird_bug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/test/node/data/test_gs_weird_bug.png -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/tools/gleak.js: -------------------------------------------------------------------------------- 1 | 2 | var gleak = require('gleak')(); 3 | gleak.ignore('AssertionError'); 4 | gleak.ignore('testFullSpec_param_found'); 5 | gleak.ignore('events'); 6 | gleak.ignore('Uint8Array'); 7 | gleak.ignore('Uint8ClampedArray'); 8 | gleak.ignore('TAP_Global_Harness'); 9 | 10 | module.exports = gleak; 11 | -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png -------------------------------------------------------------------------------- /node_modules/connect-mongo/node_modules/mongodb/test_gs_weird_bug_streamed.tmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/connect-mongo/node_modules/mongodb/test_gs_weird_bug_streamed.tmp -------------------------------------------------------------------------------- /node_modules/crypto/.md5.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/crypto/.md5.js.un~ -------------------------------------------------------------------------------- /node_modules/crypto/.package.json.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/crypto/.package.json.un~ -------------------------------------------------------------------------------- /node_modules/crypto/.sha1.js.un~: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/crypto/.sha1.js.un~ -------------------------------------------------------------------------------- /node_modules/crypto/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2010-01-03 3 | ================== 4 | 5 | * Initial release 6 | -------------------------------------------------------------------------------- /node_modules/crypto/Readme.md: -------------------------------------------------------------------------------- 1 | # crypto # 2 | 3 | JavaScript implementations of standard and secure cryptographic algorithms. 4 | 5 | ## Install ## 6 | 7 | npm install crypto 8 | 9 | -------------------------------------------------------------------------------- /node_modules/crypto/test/test-crypto.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | if (module == require.main) 4 | require("test").run(exports); 5 | -------------------------------------------------------------------------------- /node_modules/devnull/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | *.log 4 | -------------------------------------------------------------------------------- /node_modules/devnull/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | 6 | before_script: 7 | - mongo myapp --eval 'db.addUser("test", "test");' 8 | 9 | notifications: 10 | irc: "irc.freenode.org#observe.it" 11 | -------------------------------------------------------------------------------- /node_modules/devnull/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2011 Observer (http://observer.no.de) 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/devnull/Makefile: -------------------------------------------------------------------------------- 1 | ALL_TESTS = $(shell find tests/ -name '*.test.js') 2 | REPORTER = spec 3 | UI = bdd 4 | 5 | test: 6 | @./node_modules/.bin/mocha \ 7 | --require should \ 8 | --require tests/common \ 9 | --reporter $(REPORTER) \ 10 | --ui $(UI) \ 11 | --growl \ 12 | $(ALL_TESTS) 13 | 14 | .PHONY: test 15 | -------------------------------------------------------------------------------- /node_modules/devnull/example/logging.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | 3 | var Logger = require('../') 4 | , logger = new Logger; 5 | 6 | function namespacing () { 7 | logger.debug('debug message'); 8 | logger.log('logging an array', []); 9 | logger.info('info message with object', {}); 10 | logger.notice('sending a notice', 1, 2, 3); 11 | logger.metric('already send', logger.calls, 'logs'); 12 | logger.warning('odear, we are going to break something'); 13 | logger.error('something bad happend'); 14 | logger.critical('oh FUCK the system is melting down'); 15 | logger.alert('call the police!'); 16 | } 17 | 18 | // used for namespacing the stuff 19 | setTimeout(function showoff () { 20 | namespacing(); 21 | }, 100); 22 | 23 | // example for non namespaced stuff 24 | logger.log('hello world'); 25 | 26 | logger.log('userdefinednamespace', 'one word without spaces is a user namespace'); 27 | 28 | // listen for emitted errors 29 | logger.on('error', function (args, stack) { 30 | console.log('There was an error logged at line: ' + (stack 31 | ? stack[0].getLineNumber() 32 | : 'unknown' 33 | )); 34 | }); 35 | 36 | -------------------------------------------------------------------------------- /node_modules/devnull/index.js: -------------------------------------------------------------------------------- 1 | /**! 2 | * dev/null 3 | * @copyright (c) 2011 Observer (observer.no.de) 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Require the core module. 9 | */ 10 | 11 | module.exports = require('./lib/logger'); 12 | -------------------------------------------------------------------------------- /node_modules/devnull/node_modules/colors/MIT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 2 | 3 | Marak Squires 4 | Alexis Sellier (cloudhead) 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/devnull/transports/index.js: -------------------------------------------------------------------------------- 1 | /**! 2 | * dev/null 3 | * @copyright (c) 2011 Observe.it (observe.it) 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Lazy require the `stream` transport. 9 | */ 10 | 11 | var stream; 12 | Object.defineProperty(exports, 'stream', { 13 | get: function () { 14 | return stream || (stream = require('./stream')); 15 | } 16 | }); 17 | 18 | /** 19 | * Lazy require the `mongodb` transport. 20 | */ 21 | 22 | var mongodb; 23 | Object.defineProperty(exports, 'mongodb', { 24 | get: function () { 25 | return mongodb || (mongodb = require('./mongodb')); 26 | } 27 | }); 28 | 29 | /** 30 | * Lazy require the transport base. 31 | */ 32 | 33 | var transport; 34 | Object.defineProperty(exports, 'transport', { 35 | get: function () { 36 | return transport || (transport = require('./transport')); 37 | } 38 | }); 39 | -------------------------------------------------------------------------------- /node_modules/express/.npmignore: -------------------------------------------------------------------------------- 1 | .git* 2 | docs/ 3 | examples/ 4 | support/ 5 | test/ 6 | testing.js 7 | .DS_Store 8 | coverage.html 9 | lib-cov 10 | -------------------------------------------------------------------------------- /node_modules/express/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 -------------------------------------------------------------------------------- /node_modules/express/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2009-2011 TJ Holowaychuk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/express/Makefile: -------------------------------------------------------------------------------- 1 | 2 | MOCHA_OPTS= 3 | REPORTER = dot 4 | 5 | check: test 6 | 7 | test: test-unit test-acceptance 8 | 9 | test-unit: 10 | @NODE_ENV=test ./node_modules/.bin/mocha \ 11 | --reporter $(REPORTER) \ 12 | $(MOCHA_OPTS) 13 | 14 | test-acceptance: 15 | @NODE_ENV=test ./node_modules/.bin/mocha \ 16 | --reporter $(REPORTER) \ 17 | --bail \ 18 | test/acceptance/*.js 19 | 20 | test-cov: lib-cov 21 | @EXPRESS_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html 22 | 23 | lib-cov: 24 | @jscoverage lib lib-cov 25 | 26 | benchmark: 27 | @./support/bench 28 | 29 | clean: 30 | rm -f coverage.html 31 | rm -fr lib-cov 32 | 33 | .PHONY: test test-unit test-acceptance benchmark clean 34 | -------------------------------------------------------------------------------- /node_modules/express/client.js: -------------------------------------------------------------------------------- 1 | 2 | var http = require('http'); 3 | 4 | var times = 50; 5 | 6 | while (times--) { 7 | var req = http.request({ 8 | port: 3000 9 | , method: 'POST' 10 | , headers: { 'Content-Type': 'application/x-www-form-urlencoded' } 11 | }); 12 | 13 | req.on('response', function(res){ 14 | console.log(res.statusCode); 15 | }); 16 | 17 | var n = 500000; 18 | while (n--) { 19 | req.write('foo=bar&bar=baz&'); 20 | } 21 | 22 | req.write('foo=bar&bar=baz'); 23 | 24 | req.end(); 25 | } -------------------------------------------------------------------------------- /node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.EXPRESS_COV 3 | ? require('./lib-cov/express') 4 | : require('./lib/express'); -------------------------------------------------------------------------------- /node_modules/express/lib/middleware.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var utils = require('./utils'); 7 | 8 | /** 9 | * Initialization middleware, exposing the 10 | * request and response to eachother, as well 11 | * as defaulting the X-Powered-By header field. 12 | * 13 | * @param {Function} app 14 | * @return {Function} 15 | * @api private 16 | */ 17 | 18 | exports.init = function(app){ 19 | return function expressInit(req, res, next){ 20 | req.app = res.app = app; 21 | if (app.settings['x-powered-by']) res.setHeader('X-Powered-By', 'Express'); 22 | req.res = res; 23 | res.req = req; 24 | req.next = next; 25 | 26 | req.__proto__ = app.request; 27 | res.__proto__ = app.response; 28 | 29 | res.locals = res.locals || utils.locals(res); 30 | 31 | next(); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/commander/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/commander/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/commander/Makefile: -------------------------------------------------------------------------------- 1 | 2 | TESTS = $(shell find test/test.*.js) 3 | 4 | test: 5 | @./test/run $(TESTS) 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/commander/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/commander'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/.npmignore: -------------------------------------------------------------------------------- 1 | *.markdown 2 | *.md 3 | .git* 4 | Makefile 5 | benchmarks/ 6 | docs/ 7 | examples/ 8 | install.sh 9 | support/ 10 | test/ 11 | .DS_Store 12 | coverage.html 13 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.9 -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.CONNECT_COV 3 | ? require('./lib-cov/connect') 4 | : require('./lib/connect'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/middleware/methodOverride.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - methodOverride 4 | * Copyright(c) 2010 Sencha Inc. 5 | * Copyright(c) 2011 TJ Holowaychuk 6 | * MIT Licensed 7 | */ 8 | 9 | /** 10 | * Method Override: 11 | * 12 | * Provides faux HTTP method support. 13 | * 14 | * Pass an optional `key` to use when checking for 15 | * a method override, othewise defaults to _\_method_. 16 | * The original method is available via `req.originalMethod`. 17 | * 18 | * @param {String} key 19 | * @return {Function} 20 | * @api public 21 | */ 22 | 23 | module.exports = function methodOverride(key){ 24 | key = key || "_method"; 25 | return function methodOverride(req, res, next) { 26 | req.originalMethod = req.originalMethod || req.method; 27 | 28 | // req.body 29 | if (req.body && key in req.body) { 30 | req.method = req.body[key].toUpperCase(); 31 | delete req.body[key]; 32 | // check X-HTTP-Method-Override 33 | } else if (req.headers['x-http-method-override']) { 34 | req.method = req.headers['x-http-method-override'].toUpperCase(); 35 | } 36 | 37 | next(); 38 | }; 39 | }; 40 | 41 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/middleware/query.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Connect - query 3 | * Copyright(c) 2011 TJ Holowaychuk 4 | * Copyright(c) 2011 Sencha Inc. 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var qs = require('qs') 13 | , parse = require('../utils').parseUrl; 14 | 15 | /** 16 | * Query: 17 | * 18 | * Automatically parse the query-string when available, 19 | * populating the `req.query` object. 20 | * 21 | * Examples: 22 | * 23 | * connect() 24 | * .use(connect.query()) 25 | * .use(function(req, res){ 26 | * res.end(JSON.stringify(req.query)); 27 | * }); 28 | * 29 | * The `options` passed are provided to qs.parse function. 30 | * 31 | * @param {Object} options 32 | * @return {Function} 33 | * @api public 34 | */ 35 | 36 | module.exports = function query(options){ 37 | return function query(req, res, next){ 38 | if (!req.query) { 39 | req.query = ~req.url.indexOf('?') 40 | ? qs.parse(parse(req).query, options) 41 | : {}; 42 | } 43 | 44 | next(); 45 | }; 46 | }; 47 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/middleware/responseTime.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connect - responseTime 4 | * Copyright(c) 2011 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Reponse time: 10 | * 11 | * Adds the `X-Response-Time` header displaying the response 12 | * duration in milliseconds. 13 | * 14 | * @return {Function} 15 | * @api public 16 | */ 17 | 18 | module.exports = function responseTime(){ 19 | return function(req, res, next){ 20 | var start = new Date; 21 | 22 | if (res._responseTime) return next(); 23 | res._responseTime = true; 24 | 25 | res.on('header', function(){ 26 | var duration = new Date - start; 27 | res.setHeader('X-Response-Time', duration + 'ms'); 28 | }); 29 | 30 | next(); 31 | }; 32 | }; 33 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | {error} 4 | 5 | 6 | 7 |
8 |

{title}

9 |

{statusCode} {error}

10 |
    {stack}
11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/favicon.ico -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_add.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_attach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_attach.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_code.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_copy.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_delete.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_edit.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_error.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_excel.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_find.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_gear.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_go.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_green.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_key.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_lightning.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_link.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_paintbrush.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_paste.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_red.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_refresh.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_save.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_acrobat.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_actionscript.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_add.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_c.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_camera.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_cd.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_code.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_code_red.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_coldfusion.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_compressed.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_copy.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_cplusplus.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_csharp.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_cup.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_database.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_delete.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_dvd.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_edit.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_error.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_excel.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_find.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_flash.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_freehand.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_gear.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_get.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_go.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_h.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_horizontal.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_key.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_lightning.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_link.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_magnify.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_medal.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_office.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_paint.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_paintbrush.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_paste.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_php.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_picture.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_powerpoint.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_put.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_ruby.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_stack.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_star.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_swoosh.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_text.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_text_width.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_tux.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_vector.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_visualstudio.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_width.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_word.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_world.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_wrench.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_white_zip.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_word.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_word.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/lib/public/icons/page_world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/lib/public/icons/page_world.png -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.0 / 2012-07-04 3 | ================== 4 | 5 | * add bytes to string conversion [yields] 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bytes", 3 | "description": "byte size string parser / serializer", 4 | "keywords": ["bytes", "utility"], 5 | "version": "0.1.0", 6 | "scripts": ["index.js"] 7 | } 8 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/bytes/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Parse byte `size` string. 4 | * 5 | * @param {String} size 6 | * @return {Number} 7 | * @api public 8 | */ 9 | 10 | module.exports = function(size) { 11 | if ('number' == typeof size) return convert(size); 12 | var parts = size.match(/^(\d+(?:\.\d+)?) *(kb|mb|gb)$/) 13 | , n = parseFloat(parts[1]) 14 | , type = parts[2]; 15 | 16 | var map = { 17 | kb: 1 << 10 18 | , mb: 1 << 20 19 | , gb: 1 << 30 20 | }; 21 | 22 | return map[type] * n; 23 | }; 24 | 25 | /** 26 | * convert bytes into string. 27 | * 28 | * @param {Number} b - bytes to convert 29 | * @return {String}i 30 | * @api public 31 | */ 32 | 33 | function convert (b) { 34 | var gb = 1 << 30, mb = 1 << 20, kb = 1 << 10; 35 | if (b >= gb) return (Math.round(b / gb * 100) / 100) + 'gb'; 36 | if (b >= mb) return (Math.round(b / mb * 100) / 100) + 'mb'; 37 | if (b >= kb) return (Math.round(b / kb * 100) / 100) + 'kb'; 38 | return b; 39 | } -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/.npmignore: -------------------------------------------------------------------------------- 1 | /test/tmp/ 2 | *.upload 3 | *.un~ 4 | *.http 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/Makefile: -------------------------------------------------------------------------------- 1 | SHELL := /bin/bash 2 | 3 | test: 4 | @./test/run.js 5 | 6 | build: npm test 7 | 8 | npm: 9 | npm install . 10 | 11 | clean: 12 | rm test/tmp/* 13 | 14 | .PHONY: test clean build 15 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/TODO: -------------------------------------------------------------------------------- 1 | - Better bufferMaxSize handling approach 2 | - Add tests for JSON parser pull request and merge it 3 | - Implement QuerystringParser the same way as MultipartParser 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/formidable'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/lib/index.js: -------------------------------------------------------------------------------- 1 | var IncomingForm = require('./incoming_form').IncomingForm; 2 | IncomingForm.IncomingForm = IncomingForm; 3 | module.exports = IncomingForm; 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/lib/querystring_parser.js: -------------------------------------------------------------------------------- 1 | if (global.GENTLY) require = GENTLY.hijack(require); 2 | 3 | // This is a buffering parser, not quite as nice as the multipart one. 4 | // If I find time I'll rewrite this to be fully streaming as well 5 | var querystring = require('querystring'); 6 | 7 | function QuerystringParser() { 8 | this.buffer = ''; 9 | }; 10 | exports.QuerystringParser = QuerystringParser; 11 | 12 | QuerystringParser.prototype.write = function(buffer) { 13 | this.buffer += buffer.toString('ascii'); 14 | return buffer.length; 15 | }; 16 | 17 | QuerystringParser.prototype.end = function() { 18 | var fields = querystring.parse(this.buffer); 19 | for (var field in fields) { 20 | this.onField(field, fields[field]); 21 | } 22 | this.buffer = ''; 23 | 24 | this.onEnd(); 25 | }; -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/lib/util.js: -------------------------------------------------------------------------------- 1 | // Backwards compatibility ... 2 | try { 3 | module.exports = require('util'); 4 | } catch (e) { 5 | module.exports = require('sys'); 6 | } 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/node-gently/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @find test/simple/test-*.js | xargs -n 1 -t node 3 | 4 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/dog.js: -------------------------------------------------------------------------------- 1 | require('../test/common'); 2 | function Dog() {} 3 | 4 | Dog.prototype.seeCat = function() { 5 | this.bark('whuf, whuf'); 6 | this.run(); 7 | } 8 | 9 | Dog.prototype.bark = function(bark) { 10 | require('sys').puts(bark); 11 | } 12 | 13 | var gently = new (require('gently')) 14 | , assert = require('assert') 15 | , dog = new Dog(); 16 | 17 | gently.expect(dog, 'bark', function(bark) { 18 | assert.equal(bark, 'whuf, whuf'); 19 | }); 20 | gently.expect(dog, 'run'); 21 | 22 | dog.seeCat(); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/event_emitter.js: -------------------------------------------------------------------------------- 1 | require('../test/common'); 2 | var gently = new (require('gently')) 3 | , stream = new (require('fs').WriteStream)('my_file.txt'); 4 | 5 | gently.expect(stream, 'emit', function(event) { 6 | assert.equal(event, 'open'); 7 | }); 8 | 9 | gently.expect(stream, 'emit', function(event) { 10 | assert.equal(event, 'drain'); 11 | }); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/node-gently/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/gently'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./gently'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/node-gently/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "gently", 3 | "version": "0.9.2", 4 | "directories": { 5 | "lib": "./lib/gently" 6 | }, 7 | "main": "./lib/gently/index", 8 | "dependencies": {}, 9 | "devDependencies": {}, 10 | "engines": { 11 | "node": "*" 12 | }, 13 | "optionalDependencies": {} 14 | } 15 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/common.js: -------------------------------------------------------------------------------- 1 | var path = require('path') 2 | , sys = require('sys'); 3 | 4 | require.paths.unshift(path.dirname(__dirname)+'/lib'); 5 | 6 | global.puts = sys.puts; 7 | global.p = function() {sys.error(sys.inspect.apply(null, arguments))};; 8 | global.assert = require('assert'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/test/common.js: -------------------------------------------------------------------------------- 1 | var mysql = require('..'); 2 | var path = require('path'); 3 | 4 | var root = path.join(__dirname, '../'); 5 | exports.dir = { 6 | root : root, 7 | lib : root + '/lib', 8 | fixture : root + '/test/fixture', 9 | tmp : root + '/test/tmp', 10 | }; 11 | 12 | exports.port = 13532; 13 | 14 | exports.formidable = require('..'); 15 | exports.assert = require('assert'); 16 | 17 | exports.require = function(lib) { 18 | return require(exports.dir.lib + '/' + lib); 19 | }; 20 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/funkyfilename.txt: -------------------------------------------------------------------------------- 1 | I am a text file with a funky name! 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/file/plain.txt: -------------------------------------------------------------------------------- 1 | I am a plain text file 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/http/special-chars-in-filename/info.md: -------------------------------------------------------------------------------- 1 | * Opera does not allow submitting this file, it shows a warning to the 2 | user that the file could not be found instead. Tested in 9.8, 11.51 on OSX. 3 | Reported to Opera on 08.09.2011 (tracking email DSK-346009@bugs.opera.com). 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js: -------------------------------------------------------------------------------- 1 | module.exports['generic.http'] = [ 2 | {type: 'file', name: 'upload', filename: '', fixture: 'plain.txt'}, 3 | ]; 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js: -------------------------------------------------------------------------------- 1 | var properFilename = 'funkyfilename.txt'; 2 | 3 | function expect(filename) { 4 | return [ 5 | {type: 'field', name: 'title', value: 'Weird filename'}, 6 | {type: 'file', name: 'upload', filename: filename, fixture: properFilename}, 7 | ]; 8 | }; 9 | 10 | var webkit = " ? % * | \" < > . ? ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt"; 11 | var ffOrIe = " ? % * | \" < > . ☃ ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt"; 12 | 13 | module.exports = { 14 | 'osx-chrome-13.http' : expect(webkit), 15 | 'osx-firefox-3.6.http' : expect(ffOrIe), 16 | 'osx-safari-5.http' : expect(webkit), 17 | 'xp-chrome-12.http' : expect(webkit), 18 | 'xp-ie-7.http' : expect(ffOrIe), 19 | 'xp-ie-8.http' : expect(ffOrIe), 20 | 'xp-safari-5.http' : expect(webkit), 21 | }; 22 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js: -------------------------------------------------------------------------------- 1 | var path = require('path'), 2 | fs = require('fs'); 3 | 4 | try { 5 | global.Gently = require('gently'); 6 | } catch (e) { 7 | throw new Error('this test suite requires node-gently'); 8 | } 9 | 10 | exports.lib = path.join(__dirname, '../../lib'); 11 | 12 | global.GENTLY = new Gently(); 13 | 14 | global.assert = require('assert'); 15 | global.TEST_PORT = 13532; 16 | global.TEST_FIXTURES = path.join(__dirname, '../fixture'); 17 | global.TEST_TMP = path.join(__dirname, '../tmp'); 18 | 19 | // Stupid new feature in node that complains about gently attaching too many 20 | // listeners to process 'exit'. This is a workaround until I can think of a 21 | // better way to deal with this. 22 | if (process.setMaxListeners) { 23 | process.setMaxListeners(10000); 24 | } 25 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/formidable/test/run.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('urun')(__dirname) 3 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/pause/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/pause/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2010-01-03 3 | ================== 4 | 5 | * Initial release 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/pause/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/pause/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = function(obj){ 3 | var onData 4 | , onEnd 5 | , events = []; 6 | 7 | // buffer data 8 | obj.on('data', onData = function(data, encoding){ 9 | events.push(['data', data, encoding]); 10 | }); 11 | 12 | // buffer end 13 | obj.on('end', onEnd = function(data, encoding){ 14 | events.push(['end', data, encoding]); 15 | }); 16 | 17 | return { 18 | end: function(){ 19 | obj.removeListener('data', onData); 20 | obj.removeListener('end', onEnd); 21 | }, 22 | resume: function(){ 23 | this.end(); 24 | for (var i = 0, len = events.length; i < len; ++i) { 25 | obj.emit.apply(obj, events[i]); 26 | } 27 | } 28 | }; 29 | }; -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "support/expresso"] 2 | path = support/expresso 3 | url = git://github.com/visionmedia/expresso.git 4 | [submodule "support/should"] 5 | path = support/should 6 | url = git://github.com/visionmedia/should.js.git 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.4 -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test/browser/qs.js: querystring.js 3 | component build package.json test/browser/qs 4 | 5 | querystring.js: lib/head.js lib/querystring.js lib/tail.js 6 | cat $^ > $@ 7 | 8 | test: 9 | @./node_modules/.bin/mocha \ 10 | --ui bdd 11 | 12 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/benchmark.js: -------------------------------------------------------------------------------- 1 | 2 | var qs = require('./'); 3 | 4 | var times = 100000 5 | , start = new Date 6 | , n = times; 7 | 8 | console.log('times: %d', times); 9 | 10 | while (n--) qs.parse('foo=bar'); 11 | console.log('simple: %dms', new Date - start); 12 | 13 | var start = new Date 14 | , n = times; 15 | 16 | while (n--) qs.parse('user[name][first]=tj&user[name][last]=holowaychuk'); 17 | console.log('nested: %dms', new Date - start); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "querystring", 3 | "description": "Querystring parser / stringifier with nesting support", 4 | "keywords": ["querystring", "query", "parser"], 5 | "main": "lib/querystring.js" 6 | } -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/querystring'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/lib/head.js: -------------------------------------------------------------------------------- 1 | ;(function(){ 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/lib/tail.js: -------------------------------------------------------------------------------- 1 | })(); -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/test/browser/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Mocha 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/node_modules/qs/test/browser/qs.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/express/node_modules/connect/node_modules/qs/test/browser/qs.css -------------------------------------------------------------------------------- /node_modules/express/node_modules/connect/test.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var http = require('http'); 7 | 8 | var body = 'hello' 9 | http.createServer(function(req, res){ 10 | res.setHeader('Content-Length', body.length); 11 | res.end(body) 12 | }).listen(3000) -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie-signature/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.1 / 2010-01-03 3 | ================== 4 | 5 | * Initial release 6 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie-signature/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie/test/mocha.opts: -------------------------------------------------------------------------------- 1 | --ui qunit 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/cookie/test/parse.js: -------------------------------------------------------------------------------- 1 | 2 | var assert = require('assert'); 3 | 4 | var cookie = require('..'); 5 | 6 | suite('parse'); 7 | 8 | test('basic', function() { 9 | assert.deepEqual({ foo: 'bar' }, cookie.parse('foo=bar')); 10 | assert.deepEqual({ foo: '123' }, cookie.parse('foo=123')); 11 | }); 12 | 13 | test('ignore spaces', function() { 14 | assert.deepEqual({ FOO: 'bar', baz: 'raz' }, 15 | cookie.parse('FOO = bar; baz = raz')); 16 | }); 17 | 18 | test('escaping', function() { 19 | assert.deepEqual({ foo: 'bar=123456789&name=Magic+Mouse' }, 20 | cookie.parse('foo="bar=123456789&name=Magic+Mouse"')); 21 | 22 | assert.deepEqual({ email: ' ",;/' }, 23 | cookie.parse('email=%20%22%2c%3b%2f')); 24 | }); 25 | 26 | test('ignore escaping error and return original value', function() { 27 | assert.deepEqual({ foo: '%1', bar: 'bar' }, cookie.parse('foo=%1;bar=bar')); 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/crc/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "tests/nodeunit"] 2 | path = tests/nodeunit 3 | url = git://github.com/caolan/nodeunit.git 4 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/crc/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/crc/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/crc/README.md: -------------------------------------------------------------------------------- 1 | # JavaScript CRC 8, 16 and 32. 2 | 3 | This is a basic port/copy of the JavaScript CRC implementation. The module works with any CommonJS system supporting `module.exports` notation as well as in the browser. When loaded in the browser, all functions end up under the `window.crc` "namespace". 4 | 5 | Original code is taken from http://www.digsys.se/JavaScript/CRC.aspx 6 | 7 | ## Functions 8 | 9 | The following functions are implemented: 10 | 11 | crc8(String) #=> Number 12 | crcArc(String) #=> Number 13 | crc16(String) #=> Number 14 | fcs16(String) #=> Number 15 | crc32(String) #=> Number 16 | hex8(Number) #=> String 17 | hex16(Number) #=> String 18 | hex32(Number) #=> String 19 | 20 | ## Installation 21 | 22 | git clone git://github.com/alexgorbatchev/node-crc.git 23 | 24 | or 25 | 26 | npm install crc 27 | 28 | ## Running tests 29 | 30 | $ npm install 31 | $ make test -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/Makefile: -------------------------------------------------------------------------------- 1 | 2 | debug.component.js: head.js debug.js tail.js 3 | cat $^ > $@ 4 | 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/example/app.js: -------------------------------------------------------------------------------- 1 | 2 | var debug = require('../')('http') 3 | , http = require('http') 4 | , name = 'My App'; 5 | 6 | // fake app 7 | 8 | debug('booting %s', name); 9 | 10 | http.createServer(function(req, res){ 11 | debug(req.method + ' ' + req.url); 12 | res.end('hello\n'); 13 | }).listen(3000, function(){ 14 | debug('listening'); 15 | }); 16 | 17 | // fake worker of some kind 18 | 19 | require('./worker'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/example/browser.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | debug() 4 | 5 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/example/wildcards.js: -------------------------------------------------------------------------------- 1 | 2 | var debug = { 3 | foo: require('../')('test:foo'), 4 | bar: require('../')('test:bar'), 5 | baz: require('../')('test:baz') 6 | }; 7 | 8 | debug.foo('foo') 9 | debug.bar('bar') 10 | debug.baz('baz') -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/example/worker.js: -------------------------------------------------------------------------------- 1 | 2 | // DEBUG=* node example/worker 3 | // DEBUG=worker:* node example/worker 4 | // DEBUG=worker:a node example/worker 5 | // DEBUG=worker:b node example/worker 6 | 7 | var a = require('../')('worker:a') 8 | , b = require('../')('worker:b'); 9 | 10 | function work() { 11 | a('doing lots of uninteresting work'); 12 | setTimeout(work, Math.random() * 1000); 13 | } 14 | 15 | work(); 16 | 17 | function workb() { 18 | b('doing some work'); 19 | setTimeout(workb, Math.random() * 2000); 20 | } 21 | 22 | workb(); -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/head.js: -------------------------------------------------------------------------------- 1 | ;(function(){ 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/debug'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/debug/tail.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = debug; 3 | 4 | })(); -------------------------------------------------------------------------------- /node_modules/express/node_modules/fresh/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/fresh/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/fresh/Readme.md: -------------------------------------------------------------------------------- 1 | 2 | # node-fresh 3 | 4 | HTTP response freshness testing 5 | 6 | ## fresh(req, res) 7 | 8 | Check freshness of `req` and `res` headers. 9 | 10 | When the cache is "fresh" __true__ is returned, 11 | otherwise __false__ is returned to indicate that 12 | the cache is now stale. 13 | 14 | ## Example: 15 | 16 | ```js 17 | var req = { 'if-none-match': 'tobi' }; 18 | var res = { 'etag': 'luna' }; 19 | fresh(req, res); 20 | // => false 21 | 22 | var req = { 'if-none-match': 'tobi' }; 23 | var res = { 'etag': 'tobi' }; 24 | fresh(req, res); 25 | // => true 26 | ``` 27 | 28 | ## Installation 29 | 30 | ``` 31 | $ npm install fresh 32 | ``` -------------------------------------------------------------------------------- /node_modules/express/node_modules/fresh/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fresh", 3 | "author": { 4 | "name": "TJ Holowaychuk", 5 | "email": "tj@vision-media.ca", 6 | "url": "http://tjholowaychuk.com" 7 | }, 8 | "description": "HTTP response freshness testing", 9 | "version": "0.1.0", 10 | "main": "index.js", 11 | "dependencies": {}, 12 | "devDependencies": { 13 | "mocha": "*", 14 | "should": "*" 15 | }, 16 | "readme": "\n# node-fresh\n\n HTTP response freshness testing\n\n## fresh(req, res)\n\n Check freshness of `req` and `res` headers.\n\n When the cache is \"fresh\" __true__ is returned,\n otherwise __false__ is returned to indicate that\n the cache is now stale.\n\n## Example:\n\n```js\nvar req = { 'if-none-match': 'tobi' };\nvar res = { 'etag': 'luna' };\nfresh(req, res);\n// => false\n\nvar req = { 'if-none-match': 'tobi' };\nvar res = { 'etag': 'tobi' };\nfresh(req, res);\n// => true\n```\n\n## Installation\n\n```\n$ npm install fresh\n```", 17 | "readmeFilename": "Readme.md", 18 | "_id": "fresh@0.1.0", 19 | "_from": "fresh@0.1.0" 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = [ 3 | 'get' 4 | , 'post' 5 | , 'put' 6 | , 'head' 7 | , 'delete' 8 | , 'options' 9 | , 'trace' 10 | , 'copy' 11 | , 'lock' 12 | , 'mkcol' 13 | , 'move' 14 | , 'propfind' 15 | , 'proppatch' 16 | , 'unlock' 17 | , 'report' 18 | , 'mkactivity' 19 | , 'checkout' 20 | , 'merge' 21 | , 'm-search' 22 | , 'notify' 23 | , 'subscribe' 24 | , 'unsubscribe' 25 | , 'patch' 26 | ]; -------------------------------------------------------------------------------- /node_modules/express/node_modules/methods/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "methods", 3 | "version": "0.0.1", 4 | "description": "HTTP methods that node supports", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [ 10 | "http", 11 | "methods" 12 | ], 13 | "author": { 14 | "name": "TJ Holowaychuk" 15 | }, 16 | "license": "MIT", 17 | "_id": "methods@0.0.1", 18 | "readme": "ERROR: No README.md file found!", 19 | "_from": "methods@0.0.1" 20 | } 21 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/.gitignore.orig: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/.gitignore.rej: -------------------------------------------------------------------------------- 1 | --- /dev/null 2 | +++ .gitignore 3 | @@ -0,0 +1,2 @@ 4 | +node_modules/ 5 | +npm-debug.log -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/examples/pow.js.orig: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', 0755, function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/examples/pow.js.rej: -------------------------------------------------------------------------------- 1 | --- examples/pow.js 2 | +++ examples/pow.js 3 | @@ -1,6 +1,15 @@ 4 | -var mkdirp = require('mkdirp').mkdirp; 5 | +var mkdirp = require('../').mkdirp, 6 | + mkdirpSync = require('../').mkdirpSync; 7 | 8 | mkdirp('/tmp/foo/bar/baz', 0755, function (err) { 9 | if (err) console.error(err) 10 | else console.log('pow!') 11 | }); 12 | + 13 | +try { 14 | + mkdirpSync('/tmp/bar/foo/baz', 0755); 15 | + console.log('double pow!'); 16 | +} 17 | +catch (ex) { 18 | + console.log(ex); 19 | +} -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/clobber.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../').mkdirp; 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | var ps = [ '', 'tmp' ]; 7 | 8 | for (var i = 0; i < 25; i++) { 9 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | ps.push(dir); 11 | } 12 | 13 | var file = ps.join('/'); 14 | 15 | // a file in the way 16 | var itw = ps.slice(0, 3).join('/'); 17 | 18 | 19 | test('clobber-pre', function (t) { 20 | console.error("about to write to "+itw) 21 | fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.'); 22 | 23 | fs.stat(itw, function (er, stat) { 24 | t.ifError(er) 25 | t.ok(stat && stat.isFile(), 'should be file') 26 | t.end() 27 | }) 28 | }) 29 | 30 | test('clobber', function (t) { 31 | t.plan(2); 32 | mkdirp(file, 0755, function (err) { 33 | t.ok(err); 34 | t.equal(err.code, 'ENOTDIR'); 35 | t.end(); 36 | }); 37 | }); 38 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/mkdirp.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('woo', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | mkdirp(file, 0755, function (err) { 15 | if (err) t.fail(err); 16 | else path.exists(file, function (ex) { 17 | if (!ex) t.fail('file not created') 18 | else fs.stat(file, function (err, stat) { 19 | if (err) t.fail(err) 20 | else { 21 | t.equal(stat.mode & 0777, 0755); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | t.end(); 24 | } 25 | }) 26 | }) 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/perm.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('async perm', function (t) { 7 | t.plan(2); 8 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16); 9 | 10 | mkdirp(file, 0755, function (err) { 11 | if (err) t.fail(err); 12 | else path.exists(file, function (ex) { 13 | if (!ex) t.fail('file not created') 14 | else fs.stat(file, function (err, stat) { 15 | if (err) t.fail(err) 16 | else { 17 | t.equal(stat.mode & 0777, 0755); 18 | t.ok(stat.isDirectory(), 'target not a directory'); 19 | t.end(); 20 | } 21 | }) 22 | }) 23 | }); 24 | }); 25 | 26 | test('async root perm', function (t) { 27 | mkdirp('/tmp', 0755, function (err) { 28 | if (err) t.fail(err); 29 | t.end(); 30 | }); 31 | t.end(); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/rel.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('rel', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var cwd = process.cwd(); 13 | process.chdir('/tmp'); 14 | 15 | var file = [x,y,z].join('/'); 16 | 17 | mkdirp(file, 0755, function (err) { 18 | if (err) t.fail(err); 19 | else path.exists(file, function (ex) { 20 | if (!ex) t.fail('file not created') 21 | else fs.stat(file, function (err, stat) { 22 | if (err) t.fail(err) 23 | else { 24 | process.chdir(cwd); 25 | t.equal(stat.mode & 0777, 0755); 26 | t.ok(stat.isDirectory(), 'target not a directory'); 27 | t.end(); 28 | } 29 | }) 30 | }) 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/return.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(4); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | mkdirp(file, function (err, made) { 18 | t.ifError(err); 19 | t.equal(made, '/tmp/' + x); 20 | mkdirp(file, function (err, made) { 21 | t.ifError(err); 22 | t.equal(made, null); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/return_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | // Note that this will throw on failure, which will fail the test. 18 | var made = mkdirp.sync(file); 19 | t.equal(made, '/tmp/' + x); 20 | 21 | // making the same file again should have no effect. 22 | made = mkdirp.sync(file); 23 | t.equal(made, null); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('root', function (t) { 7 | // '/' on unix, 'c:/' on windows. 8 | var file = path.resolve('/'); 9 | 10 | mkdirp(file, 0755, function (err) { 11 | if (err) throw err 12 | fs.stat(file, function (er, stat) { 13 | if (er) throw er 14 | t.ok(stat.isDirectory(), 'target is a directory'); 15 | t.end(); 16 | }) 17 | }); 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('sync', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | try { 15 | mkdirp.sync(file, 0755); 16 | } catch (err) { 17 | t.fail(err); 18 | return t.end(); 19 | } 20 | 21 | path.exists(file, function (ex) { 22 | if (!ex) t.fail('file not created') 23 | else fs.stat(file, function (err, stat) { 24 | if (err) t.fail(err) 25 | else { 26 | t.equal(stat.mode & 0777, 0755); 27 | t.ok(stat.isDirectory(), 'target not a directory'); 28 | t.end(); 29 | } 30 | }); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/umask.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('implicit mode from umask', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | mkdirp(file, function (err) { 15 | if (err) t.fail(err); 16 | else path.exists(file, function (ex) { 17 | if (!ex) t.fail('file not created') 18 | else fs.stat(file, function (err, stat) { 19 | if (err) t.fail(err) 20 | else { 21 | t.equal(stat.mode & 0777, 0777 & (~process.umask())); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | t.end(); 24 | } 25 | }) 26 | }) 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/mkdirp/test/umask_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('umask sync modes', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | try { 15 | mkdirp.sync(file); 16 | } catch (err) { 17 | t.fail(err); 18 | return t.end(); 19 | } 20 | 21 | path.exists(file, function (ex) { 22 | if (!ex) t.fail('file not created') 23 | else fs.stat(file, function (err, stat) { 24 | if (err) t.fail(err) 25 | else { 26 | t.equal(stat.mode & 0777, (0777 & (~process.umask()))); 27 | t.ok(stat.isDirectory(), 'target not a directory'); 28 | t.end(); 29 | } 30 | }); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/range-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/range-parser/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.4 / 2012-06-17 3 | ================== 4 | 5 | * changed: ret -1 for unsatisfiable and -2 when invalid 6 | 7 | 0.0.3 / 2012-06-17 8 | ================== 9 | 10 | * fix last-byte-pos default to len - 1 11 | 12 | 0.0.2 / 2012-06-14 13 | ================== 14 | 15 | * add `.type` 16 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/range-parser/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --reporter spec \ 5 | --require should 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/range-parser/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Parse "Range" header `str` relative to the given file `size`. 4 | * 5 | * @param {Number} size 6 | * @param {String} str 7 | * @return {Array} 8 | * @api public 9 | */ 10 | 11 | module.exports = function(size, str){ 12 | var valid = true; 13 | var i = str.indexOf('='); 14 | 15 | if (-1 == i) return -2; 16 | 17 | var arr = str.slice(i + 1).split(',').map(function(range){ 18 | var range = range.split('-') 19 | , start = parseInt(range[0], 10) 20 | , end = parseInt(range[1], 10); 21 | 22 | // -nnn 23 | if (isNaN(start)) { 24 | start = size - end; 25 | end = size - 1; 26 | // nnn- 27 | } else if (isNaN(end)) { 28 | end = size - 1; 29 | } 30 | 31 | // limit last-byte-pos to current length 32 | if (end > size - 1) end = size - 1; 33 | 34 | // invalid 35 | if (isNaN(start) 36 | || isNaN(end) 37 | || start > end 38 | || start < 0) valid = false; 39 | 40 | return { 41 | start: start, 42 | end: end 43 | }; 44 | }); 45 | 46 | arr.type = str.slice(0, i); 47 | 48 | return valid ? arr : -1; 49 | }; -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.1.0 / 2012-08-25 3 | ================== 4 | 5 | * add options parameter to send() that is passed to fs.createReadStream() [kanongil] 6 | 7 | 0.0.4 / 2012-08-16 8 | ================== 9 | 10 | * allow custom "Accept-Ranges" definition 11 | 12 | 0.0.3 / 2012-07-16 13 | ================== 14 | 15 | * fix normalization of the root directory. Closes #3 16 | 17 | 0.0.2 / 2012-07-09 18 | ================== 19 | 20 | * add passing of req explicitly for now (YUCK) 21 | 22 | 0.0.1 / 2010-01-03 23 | ================== 24 | 25 | * Initial release 26 | -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec \ 6 | --bail 7 | 8 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/send'); -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/lib/utils.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Return an ETag in the form of `"-"` 4 | * from the given `stat`. 5 | * 6 | * @param {Object} stat 7 | * @return {String} 8 | * @api private 9 | */ 10 | 11 | exports.etag = function(stat) { 12 | return '"' + stat.size + '-' + Number(stat.mtime) + '"'; 13 | }; 14 | 15 | /** 16 | * decodeURIComponent. 17 | * 18 | * Allows V8 to only deoptimize this fn instead of all 19 | * of send(). 20 | * 21 | * @param {String} path 22 | * @api private 23 | */ 24 | 25 | exports.decode = function(path){ 26 | try { 27 | return decodeURIComponent(path); 28 | } catch (err) { 29 | return -1; 30 | } 31 | }; 32 | 33 | /** 34 | * Escape the given string of `html`. 35 | * 36 | * @param {String} html 37 | * @return {String} 38 | * @api private 39 | */ 40 | 41 | exports.escape = function(html){ 42 | return String(html) 43 | .replace(/&(?!\w+;)/g, '&') 44 | .replace(//g, '>') 46 | .replace(/"/g, '"'); 47 | }; -------------------------------------------------------------------------------- /node_modules/express/node_modules/send/node_modules/mime/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 Benjamin Thomas, Robert Kieffer 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/express/test.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Module dependencies. 4 | */ 5 | 6 | var express = require('./') 7 | , app = express() 8 | 9 | console.log(express.json()); 10 | app.use(express.favicon()); 11 | app.use(express.logger('dev')); 12 | app.use(express.cookieParser('foobar')); 13 | app.use(express.session()); 14 | 15 | app.get('/', function(req, res){ 16 | res.send('hello'); 17 | }); 18 | 19 | app.listen(3000); 20 | console.log('listening on 3000'); -------------------------------------------------------------------------------- /node_modules/jade/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | support 3 | benchmarks 4 | examples 5 | lib-cov 6 | coverage.html 7 | .gitmodules 8 | .travis.yml 9 | History.md 10 | Makefile 11 | test/ 12 | support/ 13 | benchmarks/ 14 | examples/ 15 | -------------------------------------------------------------------------------- /node_modules/jade/LICENSE: -------------------------------------------------------------------------------- 1 | (The MIT License) 2 | 3 | Copyright (c) 2009-2010 TJ Holowaychuk 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | 'Software'), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 20 | CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 21 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 22 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/jade/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = process.env.JADE_COV 3 | ? require('./lib-cov/jade') 4 | : require('./lib/jade'); -------------------------------------------------------------------------------- /node_modules/jade/lib/doctypes.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - doctypes 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | module.exports = { 9 | '5': '' 10 | , 'default': '' 11 | , 'xml': '' 12 | , 'transitional': '' 13 | , 'strict': '' 14 | , 'frameset': '' 15 | , '1.1': '' 16 | , 'basic': '' 17 | , 'mobile': '' 18 | }; -------------------------------------------------------------------------------- /node_modules/jade/lib/inline-tags.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - inline tags 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | module.exports = [ 9 | 'a' 10 | , 'abbr' 11 | , 'acronym' 12 | , 'b' 13 | , 'br' 14 | , 'code' 15 | , 'em' 16 | , 'font' 17 | , 'i' 18 | , 'img' 19 | , 'ins' 20 | , 'kbd' 21 | , 'map' 22 | , 'samp' 23 | , 'small' 24 | , 'span' 25 | , 'strong' 26 | , 'sub' 27 | , 'sup' 28 | ]; -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/block-comment.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - BlockComment 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node'); 13 | 14 | /** 15 | * Initialize a `BlockComment` with the given `block`. 16 | * 17 | * @param {String} val 18 | * @param {Block} block 19 | * @param {Boolean} buffer 20 | * @api public 21 | */ 22 | 23 | var BlockComment = module.exports = function BlockComment(val, block, buffer) { 24 | this.block = block; 25 | this.val = val; 26 | this.buffer = buffer; 27 | }; 28 | 29 | /** 30 | * Inherit from `Node`. 31 | */ 32 | 33 | BlockComment.prototype.__proto__ = Node.prototype; -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/case.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Case 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node'); 13 | 14 | /** 15 | * Initialize a new `Case` with `expr`. 16 | * 17 | * @param {String} expr 18 | * @api public 19 | */ 20 | 21 | var Case = exports = module.exports = function Case(expr, block){ 22 | this.expr = expr; 23 | this.block = block; 24 | }; 25 | 26 | /** 27 | * Inherit from `Node`. 28 | */ 29 | 30 | Case.prototype.__proto__ = Node.prototype; 31 | 32 | var When = exports.When = function When(expr, block){ 33 | this.expr = expr; 34 | this.block = block; 35 | this.debug = false; 36 | }; 37 | 38 | /** 39 | * Inherit from `Node`. 40 | */ 41 | 42 | When.prototype.__proto__ = Node.prototype; 43 | 44 | -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/code.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Code 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node'); 13 | 14 | /** 15 | * Initialize a `Code` node with the given code `val`. 16 | * Code may also be optionally buffered and escaped. 17 | * 18 | * @param {String} val 19 | * @param {Boolean} buffer 20 | * @param {Boolean} escape 21 | * @api public 22 | */ 23 | 24 | var Code = module.exports = function Code(val, buffer, escape) { 25 | this.val = val; 26 | this.buffer = buffer; 27 | this.escape = escape; 28 | if (val.match(/^ *else/)) this.debug = false; 29 | }; 30 | 31 | /** 32 | * Inherit from `Node`. 33 | */ 34 | 35 | Code.prototype.__proto__ = Node.prototype; -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/comment.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Comment 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node'); 13 | 14 | /** 15 | * Initialize a `Comment` with the given `val`, optionally `buffer`, 16 | * otherwise the comment may render in the output. 17 | * 18 | * @param {String} val 19 | * @param {Boolean} buffer 20 | * @api public 21 | */ 22 | 23 | var Comment = module.exports = function Comment(val, buffer) { 24 | this.val = val; 25 | this.buffer = buffer; 26 | }; 27 | 28 | /** 29 | * Inherit from `Node`. 30 | */ 31 | 32 | Comment.prototype.__proto__ = Node.prototype; -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/doctype.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Doctype 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node'); 13 | 14 | /** 15 | * Initialize a `Doctype` with the given `val`. 16 | * 17 | * @param {String} val 18 | * @api public 19 | */ 20 | 21 | var Doctype = module.exports = function Doctype(val) { 22 | this.val = val; 23 | }; 24 | 25 | /** 26 | * Inherit from `Node`. 27 | */ 28 | 29 | Doctype.prototype.__proto__ = Node.prototype; -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/each.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Each 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node'); 13 | 14 | /** 15 | * Initialize an `Each` node, representing iteration 16 | * 17 | * @param {String} obj 18 | * @param {String} val 19 | * @param {String} key 20 | * @param {Block} block 21 | * @api public 22 | */ 23 | 24 | var Each = module.exports = function Each(obj, val, key, block) { 25 | this.obj = obj; 26 | this.val = val; 27 | this.key = key; 28 | this.block = block; 29 | }; 30 | 31 | /** 32 | * Inherit from `Node`. 33 | */ 34 | 35 | Each.prototype.__proto__ = Node.prototype; -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/filter.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Filter 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node') 13 | , Block = require('./block'); 14 | 15 | /** 16 | * Initialize a `Filter` node with the given 17 | * filter `name` and `block`. 18 | * 19 | * @param {String} name 20 | * @param {Block|Node} block 21 | * @api public 22 | */ 23 | 24 | var Filter = module.exports = function Filter(name, block, attrs) { 25 | this.name = name; 26 | this.block = block; 27 | this.attrs = attrs; 28 | this.isASTFilter = !block.nodes.every(function(node){ return node.isText }); 29 | }; 30 | 31 | /** 32 | * Inherit from `Node`. 33 | */ 34 | 35 | Filter.prototype.__proto__ = Node.prototype; -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | exports.Node = require('./node'); 9 | exports.Tag = require('./tag'); 10 | exports.Code = require('./code'); 11 | exports.Each = require('./each'); 12 | exports.Case = require('./case'); 13 | exports.Text = require('./text'); 14 | exports.Block = require('./block'); 15 | exports.Mixin = require('./mixin'); 16 | exports.Filter = require('./filter'); 17 | exports.Comment = require('./comment'); 18 | exports.Literal = require('./literal'); 19 | exports.BlockComment = require('./block-comment'); 20 | exports.Doctype = require('./doctype'); 21 | -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/literal.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Literal 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node'); 13 | 14 | /** 15 | * Initialize a `Literal` node with the given `str. 16 | * 17 | * @param {String} str 18 | * @api public 19 | */ 20 | 21 | var Literal = module.exports = function Literal(str) { 22 | this.str = str 23 | .replace(/\\/g, "\\\\") 24 | .replace(/\n|\r\n/g, "\\n") 25 | .replace(/'/g, "\\'"); 26 | }; 27 | 28 | /** 29 | * Inherit from `Node`. 30 | */ 31 | 32 | Literal.prototype.__proto__ = Node.prototype; 33 | -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/mixin.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Mixin 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Attrs = require('./attrs'); 13 | 14 | /** 15 | * Initialize a new `Mixin` with `name` and `block`. 16 | * 17 | * @param {String} name 18 | * @param {String} args 19 | * @param {Block} block 20 | * @api public 21 | */ 22 | 23 | var Mixin = module.exports = function Mixin(name, args, block, call){ 24 | this.name = name; 25 | this.args = args; 26 | this.block = block; 27 | this.attrs = []; 28 | this.call = call; 29 | }; 30 | 31 | /** 32 | * Inherit from `Attrs`. 33 | */ 34 | 35 | Mixin.prototype.__proto__ = Attrs.prototype; 36 | 37 | -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/node.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Node 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Initialize a `Node`. 10 | * 11 | * @api public 12 | */ 13 | 14 | var Node = module.exports = function Node(){}; 15 | 16 | /** 17 | * Clone this node (return itself) 18 | * 19 | * @return {Node} 20 | * @api private 21 | */ 22 | 23 | Node.prototype.clone = function(){ 24 | return this; 25 | }; 26 | -------------------------------------------------------------------------------- /node_modules/jade/lib/nodes/text.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - nodes - Text 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | /** 9 | * Module dependencies. 10 | */ 11 | 12 | var Node = require('./node'); 13 | 14 | /** 15 | * Initialize a `Text` node with optional `line`. 16 | * 17 | * @param {String} line 18 | * @api public 19 | */ 20 | 21 | var Text = module.exports = function Text(line) { 22 | this.val = ''; 23 | if ('string' == typeof line) this.val = line; 24 | }; 25 | 26 | /** 27 | * Inherit from `Node`. 28 | */ 29 | 30 | Text.prototype.__proto__ = Node.prototype; 31 | 32 | /** 33 | * Flag as text. 34 | */ 35 | 36 | Text.prototype.isText = true; -------------------------------------------------------------------------------- /node_modules/jade/lib/self-closing.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Jade - self closing tags 4 | * Copyright(c) 2010 TJ Holowaychuk 5 | * MIT Licensed 6 | */ 7 | 8 | module.exports = [ 9 | 'meta' 10 | , 'img' 11 | , 'link' 12 | , 'input' 13 | , 'source' 14 | , 'area' 15 | , 'base' 16 | , 'col' 17 | , 'br' 18 | , 'hr' 19 | ]; -------------------------------------------------------------------------------- /node_modules/jade/node_modules/.bin/cake: -------------------------------------------------------------------------------- 1 | ../coffee-script/bin/cake -------------------------------------------------------------------------------- /node_modules/jade/node_modules/.bin/coffee: -------------------------------------------------------------------------------- 1 | ../coffee-script/bin/coffee -------------------------------------------------------------------------------- /node_modules/jade/node_modules/coffee-script/.npmignore: -------------------------------------------------------------------------------- 1 | *.coffee 2 | *.html 3 | .DS_Store 4 | .git* 5 | Cakefile 6 | documentation/ 7 | examples/ 8 | extras/coffee-script.js 9 | raw/ 10 | src/ 11 | test/ 12 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/coffee-script/CNAME: -------------------------------------------------------------------------------- 1 | coffeescript.org -------------------------------------------------------------------------------- /node_modules/jade/node_modules/coffee-script/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## How to contribute to CoffeeScript 2 | 3 | * Before you open a ticket or send a pull request, [search](https://github.com/jashkenas/coffee-script/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one. 4 | 5 | * Before sending a pull request for a feature, be sure to have [tests](https://github.com/jashkenas/coffee-script/tree/master/test). 6 | 7 | * Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/coffee-script/tree/master/src). If you're just getting started with CoffeeScript, there's a nice [style guide](https://github.com/polarmobile/coffeescript-style-guide). 8 | 9 | * In your pull request, do not add documentation to `index.html` or re-build the minified `coffee-script.js` file. We'll do those things before cutting a new release. -------------------------------------------------------------------------------- /node_modules/jade/node_modules/coffee-script/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2012 Jeremy Ashkenas 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/jade/node_modules/coffee-script/bin/cake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var path = require('path'); 4 | var fs = require('fs'); 5 | var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib'); 6 | 7 | require(lib + '/coffee-script/cake').run(); 8 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/coffee-script/bin/coffee: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var path = require('path'); 4 | var fs = require('fs'); 5 | var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib'); 6 | 7 | require(lib + '/coffee-script/command').run(); 8 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/coffee-script/lib/coffee-script/index.js: -------------------------------------------------------------------------------- 1 | // Generated by CoffeeScript 1.4.0 2 | (function() { 3 | var key, val, _ref; 4 | 5 | _ref = require('./coffee-script'); 6 | for (key in _ref) { 7 | val = _ref[key]; 8 | exports[key] = val; 9 | } 10 | 11 | }).call(this); 12 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/commander/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/commander/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/commander/Makefile: -------------------------------------------------------------------------------- 1 | 2 | TESTS = $(shell find test/test.*.js) 3 | 4 | test: 5 | @./test/run $(TESTS) 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /node_modules/jade/node_modules/commander/index.js: -------------------------------------------------------------------------------- 1 | 2 | module.exports = require('./lib/commander'); -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/clobber.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../').mkdirp; 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | var ps = [ '', 'tmp' ]; 7 | 8 | for (var i = 0; i < 25; i++) { 9 | var dir = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | ps.push(dir); 11 | } 12 | 13 | var file = ps.join('/'); 14 | 15 | // a file in the way 16 | var itw = ps.slice(0, 3).join('/'); 17 | 18 | 19 | test('clobber-pre', function (t) { 20 | console.error("about to write to "+itw) 21 | fs.writeFileSync(itw, 'I AM IN THE WAY, THE TRUTH, AND THE LIGHT.'); 22 | 23 | fs.stat(itw, function (er, stat) { 24 | t.ifError(er) 25 | t.ok(stat && stat.isFile(), 'should be file') 26 | t.end() 27 | }) 28 | }) 29 | 30 | test('clobber', function (t) { 31 | t.plan(2); 32 | mkdirp(file, 0755, function (err) { 33 | t.ok(err); 34 | t.equal(err.code, 'ENOTDIR'); 35 | t.end(); 36 | }); 37 | }); 38 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/mkdirp.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('woo', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | mkdirp(file, 0755, function (err) { 15 | if (err) t.fail(err); 16 | else path.exists(file, function (ex) { 17 | if (!ex) t.fail('file not created') 18 | else fs.stat(file, function (err, stat) { 19 | if (err) t.fail(err) 20 | else { 21 | t.equal(stat.mode & 0777, 0755); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | t.end(); 24 | } 25 | }) 26 | }) 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/perm.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('async perm', function (t) { 7 | t.plan(2); 8 | var file = '/tmp/' + (Math.random() * (1<<30)).toString(16); 9 | 10 | mkdirp(file, 0755, function (err) { 11 | if (err) t.fail(err); 12 | else path.exists(file, function (ex) { 13 | if (!ex) t.fail('file not created') 14 | else fs.stat(file, function (err, stat) { 15 | if (err) t.fail(err) 16 | else { 17 | t.equal(stat.mode & 0777, 0755); 18 | t.ok(stat.isDirectory(), 'target not a directory'); 19 | t.end(); 20 | } 21 | }) 22 | }) 23 | }); 24 | }); 25 | 26 | test('async root perm', function (t) { 27 | mkdirp('/tmp', 0755, function (err) { 28 | if (err) t.fail(err); 29 | t.end(); 30 | }); 31 | t.end(); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/rel.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('rel', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var cwd = process.cwd(); 13 | process.chdir('/tmp'); 14 | 15 | var file = [x,y,z].join('/'); 16 | 17 | mkdirp(file, 0755, function (err) { 18 | if (err) t.fail(err); 19 | else path.exists(file, function (ex) { 20 | if (!ex) t.fail('file not created') 21 | else fs.stat(file, function (err, stat) { 22 | if (err) t.fail(err) 23 | else { 24 | process.chdir(cwd); 25 | t.equal(stat.mode & 0777, 0755); 26 | t.ok(stat.isDirectory(), 'target not a directory'); 27 | t.end(); 28 | } 29 | }) 30 | }) 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/return.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(4); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | mkdirp(file, function (err, made) { 18 | t.ifError(err); 19 | t.equal(made, '/tmp/' + x); 20 | mkdirp(file, function (err, made) { 21 | t.ifError(err); 22 | t.equal(made, null); 23 | }); 24 | }); 25 | }); 26 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/return_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('return value', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | // should return the first dir created. 15 | // By this point, it would be profoundly surprising if /tmp didn't 16 | // already exist, since every other test makes things in there. 17 | // Note that this will throw on failure, which will fail the test. 18 | var made = mkdirp.sync(file); 19 | t.equal(made, '/tmp/' + x); 20 | 21 | // making the same file again should have no effect. 22 | made = mkdirp.sync(file); 23 | t.equal(made, null); 24 | }); 25 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('root', function (t) { 7 | // '/' on unix, 'c:/' on windows. 8 | var file = path.resolve('/'); 9 | 10 | mkdirp(file, 0755, function (err) { 11 | if (err) throw err 12 | fs.stat(file, function (er, stat) { 13 | if (er) throw er 14 | t.ok(stat.isDirectory(), 'target is a directory'); 15 | t.end(); 16 | }) 17 | }); 18 | }); 19 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('sync', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | try { 15 | mkdirp.sync(file, 0755); 16 | } catch (err) { 17 | t.fail(err); 18 | return t.end(); 19 | } 20 | 21 | path.exists(file, function (ex) { 22 | if (!ex) t.fail('file not created') 23 | else fs.stat(file, function (err, stat) { 24 | if (err) t.fail(err) 25 | else { 26 | t.equal(stat.mode & 0777, 0755); 27 | t.ok(stat.isDirectory(), 'target not a directory'); 28 | t.end(); 29 | } 30 | }); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/umask.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('implicit mode from umask', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | mkdirp(file, function (err) { 15 | if (err) t.fail(err); 16 | else path.exists(file, function (ex) { 17 | if (!ex) t.fail('file not created') 18 | else fs.stat(file, function (err, stat) { 19 | if (err) t.fail(err) 20 | else { 21 | t.equal(stat.mode & 0777, 0777 & (~process.umask())); 22 | t.ok(stat.isDirectory(), 'target not a directory'); 23 | t.end(); 24 | } 25 | }) 26 | }) 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /node_modules/jade/node_modules/mkdirp/test/umask_sync.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | 6 | test('umask sync modes', function (t) { 7 | t.plan(2); 8 | var x = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 9 | var y = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 10 | var z = Math.floor(Math.random() * Math.pow(16,4)).toString(16); 11 | 12 | var file = '/tmp/' + [x,y,z].join('/'); 13 | 14 | try { 15 | mkdirp.sync(file); 16 | } catch (err) { 17 | t.fail(err); 18 | return t.end(); 19 | } 20 | 21 | path.exists(file, function (ex) { 22 | if (!ex) t.fail('file not created') 23 | else fs.stat(file, function (err, stat) { 24 | if (err) t.fail(err) 25 | else { 26 | t.equal(stat.mode & 0777, (0777 & (~process.umask()))); 27 | t.ok(stat.isDirectory(), 'target not a directory'); 28 | t.end(); 29 | } 30 | }); 31 | }); 32 | }); 33 | -------------------------------------------------------------------------------- /node_modules/mongoose/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | **.swp 3 | *.sw* 4 | *.orig 5 | .DS_Store 6 | node_modules/ 7 | benchmarks/ 8 | docs/ 9 | test/ 10 | Makefile 11 | CNAME 12 | index.html 13 | index.jade 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.4 4 | - 0.6 5 | - 0.8 6 | services: 7 | - mongodb 8 | -------------------------------------------------------------------------------- /node_modules/mongoose/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Export lib/mongoose 4 | * 5 | */ 6 | 7 | module.exports = require('./lib/'); 8 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/connectionstate.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Connection states 4 | */ 5 | 6 | var STATES = module.exports = exports = Object.create(null); 7 | 8 | var disconnected = 'disconnected'; 9 | var connected = 'connected'; 10 | var connecting = 'connecting'; 11 | var disconnecting = 'disconnecting'; 12 | var uninitialized = 'uninitialized'; 13 | 14 | STATES[0] = disconnected; 15 | STATES[1] = connected; 16 | STATES[2] = connecting; 17 | STATES[3] = disconnecting; 18 | STATES[99] = uninitialized; 19 | 20 | STATES[disconnected] = 0; 21 | STATES[connected] = 1; 22 | STATES[connecting] = 2; 23 | STATES[disconnecting] = 3; 24 | STATES[uninitialized] = 99; 25 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/node-mongodb-native/binary.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var Binary = require('mongodb').BSONPure.Binary; 7 | 8 | module.exports = exports = Binary; 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * [node-mongodb-native](https://github.com/mongodb/node-mongodb-native) ObjectId 4 | * @constructor NodeMongoDbObjectId 5 | * @see ObjectId 6 | */ 7 | 8 | var ObjectId = require('mongodb').BSONPure.ObjectID; 9 | 10 | /*! 11 | * ignore 12 | */ 13 | 14 | var ObjectIdToString = ObjectId.toString.bind(ObjectId); 15 | module.exports = exports = ObjectId; 16 | 17 | ObjectId.fromString = function(str){ 18 | // patch native driver bug in V0.9.6.4 19 | if (!('string' === typeof str && 24 === str.length)) { 20 | throw new Error("Invalid ObjectId"); 21 | } 22 | 23 | return ObjectId.createFromHexString(str); 24 | }; 25 | 26 | ObjectId.toString = function(oid){ 27 | if (!arguments.length) return ObjectIdToString(); 28 | return oid.toHexString(); 29 | }; 30 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/error.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * Mongoose error 4 | * 5 | * @api private 6 | * @inherits Error https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error 7 | */ 8 | 9 | function MongooseError (msg) { 10 | Error.call(this); 11 | Error.captureStackTrace(this, arguments.callee); 12 | this.message = msg; 13 | this.name = 'MongooseError'; 14 | }; 15 | 16 | /*! 17 | * Inherits from Error. 18 | */ 19 | 20 | MongooseError.prototype.__proto__ = Error.prototype; 21 | 22 | /*! 23 | * Module exports. 24 | */ 25 | 26 | module.exports = MongooseError; 27 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/errors/cast.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | var MongooseError = require('../error'); 6 | 7 | /** 8 | * Casting Error constructor. 9 | * 10 | * @param {String} type 11 | * @param {String} value 12 | * @inherits MongooseError 13 | * @api private 14 | */ 15 | 16 | function CastError (type, value) { 17 | MongooseError.call(this, 'Cast to ' + type + ' failed for value "' + value + '"'); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'CastError'; 20 | this.type = type; 21 | this.value = value; 22 | }; 23 | 24 | /*! 25 | * Inherits from MongooseError. 26 | */ 27 | 28 | CastError.prototype.__proto__ = MongooseError.prototype; 29 | 30 | /*! 31 | * exports 32 | */ 33 | 34 | module.exports = CastError; 35 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/errors/document.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module requirements 4 | */ 5 | 6 | var MongooseError = require('../error') 7 | 8 | /** 9 | * Document Error 10 | * 11 | * @param {String} msg 12 | * @inherits MongooseError 13 | * @api private 14 | */ 15 | 16 | function DocumentError (msg) { 17 | MongooseError.call(this, msg); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'DocumentError'; 20 | }; 21 | 22 | /*! 23 | * Inherits from MongooseError. 24 | */ 25 | 26 | DocumentError.prototype.__proto__ = MongooseError.prototype; 27 | 28 | /*! 29 | * Module exports. 30 | */ 31 | 32 | module.exports = exports = DocumentError; 33 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/errors/validation.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module requirements 4 | */ 5 | 6 | var MongooseError = require('../error') 7 | 8 | /** 9 | * Document Validation Error 10 | * 11 | * @api private 12 | * @param {Document} instance 13 | * @inherits MongooseError 14 | */ 15 | 16 | function ValidationError (instance) { 17 | MongooseError.call(this, "Validation failed"); 18 | Error.captureStackTrace(this, arguments.callee); 19 | this.name = 'ValidationError'; 20 | this.errors = instance.errors = {}; 21 | }; 22 | 23 | /** 24 | * Console.log helper 25 | */ 26 | 27 | ValidationError.prototype.toString = function () { 28 | return this.name + ': ' + Object.keys(this.errors).map(function (key) { 29 | return String(this.errors[key]); 30 | }, this).join(', '); 31 | }; 32 | 33 | /*! 34 | * Inherits from MongooseError. 35 | */ 36 | 37 | ValidationError.prototype.__proto__ = MongooseError.prototype; 38 | 39 | /*! 40 | * Module exports 41 | */ 42 | 43 | module.exports = exports = ValidationError; 44 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/errors/validator.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Module dependencies. 3 | */ 4 | 5 | var MongooseError = require('../error'); 6 | 7 | /** 8 | * Schema validator error 9 | * 10 | * @param {String} path 11 | * @param {String} msg 12 | * @inherits MongooseError 13 | * @api private 14 | */ 15 | 16 | function ValidatorError (path, type) { 17 | var msg = type 18 | ? '"' + type + '" ' 19 | : ''; 20 | MongooseError.call(this, 'Validator ' + msg + 'failed for path ' + path); 21 | Error.captureStackTrace(this, arguments.callee); 22 | this.name = 'ValidatorError'; 23 | this.path = path; 24 | this.type = type; 25 | }; 26 | 27 | /*! 28 | * toString helper 29 | */ 30 | 31 | ValidatorError.prototype.toString = function () { 32 | return this.message; 33 | } 34 | 35 | /*! 36 | * Inherits from MongooseError 37 | */ 38 | 39 | ValidatorError.prototype.__proto__ = MongooseError.prototype; 40 | 41 | /*! 42 | * exports 43 | */ 44 | 45 | module.exports = ValidatorError; 46 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/schema/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module exports. 4 | */ 5 | 6 | exports.String = require('./string'); 7 | 8 | exports.Number = require('./number'); 9 | 10 | exports.Boolean = require('./boolean'); 11 | 12 | exports.DocumentArray = require('./documentarray'); 13 | 14 | exports.Array = require('./array'); 15 | 16 | exports.Buffer = require('./buffer'); 17 | 18 | exports.Date = require('./date'); 19 | 20 | exports.ObjectId = require('./objectid'); 21 | 22 | exports.Mixed = require('./mixed'); 23 | 24 | // alias 25 | 26 | exports.Oid = exports.ObjectId; 27 | exports.Object = exports.Mixed; 28 | exports.Bool = exports.Boolean; 29 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/schemadefault.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module dependencies. 4 | */ 5 | 6 | var Schema = require('./schema') 7 | 8 | /** 9 | * Default model for querying the system.profiles collection. 10 | * 11 | * @property system.profile 12 | * @receiver exports 13 | * @api private 14 | */ 15 | 16 | exports['system.profile'] = new Schema({ 17 | ts: Date 18 | , info: String // deprecated 19 | , millis: Number 20 | , op: String 21 | , ns: String 22 | , query: Schema.Types.Mixed 23 | , updateobj: Schema.Types.Mixed 24 | , ntoreturn: Number 25 | , nreturned: Number 26 | , nscanned: Number 27 | , responseLength: Number 28 | , client: String 29 | , user: String 30 | , idhack: Boolean 31 | , scanAndOrder: Boolean 32 | , keyUpdates: Number 33 | , cursorid: Number 34 | }, { noVirtualId: true, noId: true }); 35 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/index.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Module exports. 4 | */ 5 | 6 | exports.Array = require('./array'); 7 | exports.Buffer = require('./buffer'); 8 | 9 | exports.Document = // @deprecate 10 | exports.Embedded = require('./embedded'); 11 | 12 | exports.DocumentArray = require('./documentarray'); 13 | exports.ObjectId = require('./objectid'); 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/lib/types/objectid.js: -------------------------------------------------------------------------------- 1 | 2 | /*! 3 | * Access driver. 4 | */ 5 | 6 | var driver = global.MONGOOSE_DRIVER_PATH || '../drivers/node-mongodb-native'; 7 | 8 | /** 9 | * ObjectId type constructor 10 | * 11 | * ####Example 12 | * 13 | * var id = new mongoose.Types.ObjectId; 14 | * 15 | * @constructor ObjectId 16 | */ 17 | 18 | var ObjectId = require(driver + '/objectid'); 19 | module.exports = ObjectId; 20 | 21 | /** 22 | * Creates an ObjectId from `str` 23 | * 24 | * @param {ObjectId|HexString} str 25 | * @static fromString 26 | * @receiver ObjectId 27 | * @return {ObjectId} 28 | * @api private 29 | */ 30 | 31 | ObjectId.fromString; 32 | 33 | /** 34 | * Converts `oid` to a string. 35 | * 36 | * @param {ObjectId} oid ObjectId instance 37 | * @static toString 38 | * @receiver ObjectId 39 | * @return {String} 40 | * @api private 41 | */ 42 | 43 | ObjectId.toString; 44 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/hooks/.npmignore: -------------------------------------------------------------------------------- 1 | **.swp 2 | node_modules 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/hooks/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | @NODE_ENV=test ./node_modules/expresso/bin/expresso \ 3 | $(TESTFLAGS) \ 4 | ./test.js 5 | 6 | test-cov: 7 | @TESTFLAGS=--cov $(MAKE) test 8 | 9 | .PHONY: test test-cov 10 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.9 # development version of 0.8, may be unstable -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/mongodb'); 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/lib/mongodb/commands/base_command.js: -------------------------------------------------------------------------------- 1 | /** 2 | Base object used for common functionality 3 | **/ 4 | var BaseCommand = exports.BaseCommand = function BaseCommand() { 5 | }; 6 | 7 | var id = 1; 8 | BaseCommand.prototype.getRequestId = function getRequestId() { 9 | if (!this.requestId) this.requestId = id++; 10 | return this.requestId; 11 | }; 12 | 13 | BaseCommand.prototype.setMongosReadPreference = function setMongosReadPreference(readPreference, tags) {} 14 | 15 | BaseCommand.prototype.updateRequestId = function() { 16 | this.requestId = id++; 17 | return this.requestId; 18 | }; 19 | 20 | // OpCodes 21 | BaseCommand.OP_REPLY = 1; 22 | BaseCommand.OP_MSG = 1000; 23 | BaseCommand.OP_UPDATE = 2001; 24 | BaseCommand.OP_INSERT = 2002; 25 | BaseCommand.OP_GET_BY_OID = 2003; 26 | BaseCommand.OP_QUERY = 2004; 27 | BaseCommand.OP_GET_MORE = 2005; 28 | BaseCommand.OP_DELETE = 2006; 29 | BaseCommand.OP_KILL_CURSORS = 2007; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | - 0.9 # development version of 0.8, may be unstable -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | NPM = npm 3 | NODEUNIT = node_modules/nodeunit/bin/nodeunit 4 | 5 | all: clean node_gyp 6 | 7 | test: clean node_gyp 8 | npm test 9 | 10 | node_gyp: clean 11 | node-gyp configure build 12 | 13 | clean: 14 | node-gyp clean 15 | 16 | .PHONY: all 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/README.md: -------------------------------------------------------------------------------- 1 | A JS/C++ Bson parser for node, used in the MongoDB Native driver -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/binding.gyp: -------------------------------------------------------------------------------- 1 | { 2 | 'targets': [ 3 | { 4 | 'target_name': 'bson', 5 | 'sources': [ 'ext/bson.cc' ], 6 | 'cflags!': [ '-fno-exceptions' ], 7 | 'cflags_cc!': [ '-fno-exceptions' ], 8 | 'conditions': [ 9 | ['OS=="mac"', { 10 | 'xcode_settings': { 11 | 'GCC_ENABLE_CPP_EXCEPTIONS': 'YES' 12 | } 13 | }] 14 | ] 15 | } 16 | ] 17 | } -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/.deps/Release/bson.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/bson.node := ln -f "Release/obj.target/bson.node" "Release/bson.node" 2>/dev/null || (rm -rf "Release/bson.node" && cp -af "Release/obj.target/bson.node" "Release/bson.node") 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/.deps/Release/obj.target/bson.node.d: -------------------------------------------------------------------------------- 1 | cmd_Release/obj.target/bson.node := flock ./Release/linker.lock g++ -shared -pthread -rdynamic -m32 -Wl,-soname=bson.node -o Release/obj.target/bson.node -Wl,--start-group Release/obj.target/bson/ext/bson.o -Wl,--end-group 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/bson.node -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/linker.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/linker.lock -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson.node -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson/ext/bson.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/Release/obj.target/bson/ext/bson.o -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/build/binding.Makefile: -------------------------------------------------------------------------------- 1 | # This file is generated by gyp; do not edit. 2 | 3 | export builddir_name ?= build/./. 4 | .PHONY: all 5 | all: 6 | $(MAKE) bson 7 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/Makefile: -------------------------------------------------------------------------------- 1 | NODE = node 2 | name = all 3 | JOBS = 1 4 | 5 | all: 6 | rm -rf build .lock-wscript bson.node 7 | node-waf configure build 8 | cp -R ./build/Release/bson.node . || true 9 | 10 | all_debug: 11 | rm -rf build .lock-wscript bson.node 12 | node-waf --debug configure build 13 | cp -R ./build/Release/bson.node . || true 14 | 15 | clang: 16 | rm -rf build .lock-wscript bson.node 17 | CXX=clang node-waf configure build 18 | cp -R ./build/Release/bson.node . || true 19 | 20 | clang_debug: 21 | rm -rf build .lock-wscript bson.node 22 | CXX=clang node-waf --debug configure build 23 | cp -R ./build/Release/bson.node . || true 24 | 25 | clean: 26 | rm -rf build .lock-wscript bson.node 27 | 28 | .PHONY: all -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/ia32/bson.node -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/mongoose/node_modules/mongodb/node_modules/bson/ext/win32/x64/bson.node -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/code.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Code type. 3 | * 4 | * @class Represents the BSON Code type. 5 | * @param {String|Function} code a string or function. 6 | * @param {Object} [scope] an optional scope for the function. 7 | * @return {Code} 8 | */ 9 | function Code(code, scope) { 10 | if(!(this instanceof Code)) return new Code(code, scope); 11 | 12 | this._bsontype = 'Code'; 13 | this.code = code; 14 | this.scope = scope == null ? {} : scope; 15 | }; 16 | 17 | /** 18 | * @ignore 19 | * @api private 20 | */ 21 | Code.prototype.toJSON = function() { 22 | return {scope:this.scope, code:this.code}; 23 | } 24 | 25 | exports.Code = Code; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/db_ref.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON DBRef type. 3 | * 4 | * @class Represents the BSON DBRef type. 5 | * @param {String} namespace the collection name. 6 | * @param {ObjectID} oid the reference ObjectID. 7 | * @param {String} [db] optional db name, if omitted the reference is local to the current db. 8 | * @return {DBRef} 9 | */ 10 | function DBRef(namespace, oid, db) { 11 | if(!(this instanceof DBRef)) return new DBRef(namespace, oid, db); 12 | 13 | this._bsontype = 'DBRef'; 14 | this.namespace = namespace; 15 | this.oid = oid; 16 | this.db = db; 17 | }; 18 | 19 | /** 20 | * @ignore 21 | * @api private 22 | */ 23 | DBRef.prototype.toJSON = function() { 24 | return { 25 | '$ref':this.namespace, 26 | '$id':this.oid, 27 | '$db':this.db == null ? '' : this.db 28 | }; 29 | } 30 | 31 | exports.DBRef = DBRef; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/double.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Double type. 3 | * 4 | * @class Represents the BSON Double type. 5 | * @param {Number} value the number we want to represent as a double. 6 | * @return {Double} 7 | */ 8 | function Double(value) { 9 | if(!(this instanceof Double)) return new Double(value); 10 | 11 | this._bsontype = 'Double'; 12 | this.value = value; 13 | } 14 | 15 | /** 16 | * Access the number value. 17 | * 18 | * @return {Number} returns the wrapped double number. 19 | * @api public 20 | */ 21 | Double.prototype.valueOf = function() { 22 | return this.value; 23 | }; 24 | 25 | /** 26 | * @ignore 27 | * @api private 28 | */ 29 | Double.prototype.toJSON = function() { 30 | return this.value; 31 | } 32 | 33 | exports.Double = Double; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/max_key.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON MaxKey type. 3 | * 4 | * @class Represents the BSON MaxKey type. 5 | * @return {MaxKey} 6 | */ 7 | function MaxKey() { 8 | if(!(this instanceof MaxKey)) return new MaxKey(); 9 | 10 | this._bsontype = 'MaxKey'; 11 | } 12 | 13 | exports.MaxKey = MaxKey; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/min_key.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON MinKey type. 3 | * 4 | * @class Represents the BSON MinKey type. 5 | * @return {MinKey} 6 | */ 7 | function MinKey() { 8 | if(!(this instanceof MinKey)) return new MinKey(); 9 | 10 | this._bsontype = 'MinKey'; 11 | } 12 | 13 | exports.MinKey = MinKey; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/lib/bson/symbol.js: -------------------------------------------------------------------------------- 1 | /** 2 | * A class representation of the BSON Symbol type. 3 | * 4 | * @class Represents the BSON Symbol type. 5 | * @param {String} value the string representing the symbol. 6 | * @return {Symbol} 7 | */ 8 | function Symbol(value) { 9 | if(!(this instanceof Symbol)) return new Symbol(value); 10 | this._bsontype = 'Symbol'; 11 | this.value = value; 12 | } 13 | 14 | /** 15 | * Access the wrapped string value. 16 | * 17 | * @return {String} returns the wrapped string. 18 | * @api public 19 | */ 20 | Symbol.prototype.valueOf = function() { 21 | return this.value; 22 | }; 23 | 24 | /** 25 | * @ignore 26 | * @api private 27 | */ 28 | Symbol.prototype.toString = function() { 29 | return this.value; 30 | } 31 | 32 | /** 33 | * @ignore 34 | * @api private 35 | */ 36 | Symbol.prototype.inspect = function() { 37 | return this.value; 38 | } 39 | 40 | /** 41 | * @ignore 42 | * @api private 43 | */ 44 | Symbol.prototype.toJSON = function() { 45 | return this.value; 46 | } 47 | 48 | exports.Symbol = Symbol; -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/test/browser/suite2.js: -------------------------------------------------------------------------------- 1 | this.suite2 = { 2 | 'another test': function (test) { 3 | setTimeout(function () { 4 | // lots of assertions 5 | test.ok(true, 'everythings ok'); 6 | test.ok(true, 'everythings ok'); 7 | test.ok(true, 'everythings ok'); 8 | test.ok(true, 'everythings ok'); 9 | test.ok(true, 'everythings ok'); 10 | test.done(); 11 | }, 10); 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/test/browser/suite3.js: -------------------------------------------------------------------------------- 1 | this.suite3 = { 2 | 'test for ie6,7,8': function (test) { 3 | test.deepEqual(["test"], ["test"]); 4 | test.notDeepEqual(["a"], ["b"]); 5 | test.done(); 6 | } 7 | }; 8 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/test/browser/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Example tests 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/test/node/data/test_gs_weird_bug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/mongoose/node_modules/mongodb/node_modules/bson/test/node/data/test_gs_weird_bug.png -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/tools/gleak.js: -------------------------------------------------------------------------------- 1 | 2 | var gleak = require('gleak')(); 3 | gleak.ignore('AssertionError'); 4 | gleak.ignore('testFullSpec_param_found'); 5 | gleak.ignore('events'); 6 | gleak.ignore('Uint8Array'); 7 | gleak.ignore('Uint8ClampedArray'); 8 | gleak.ignore('TAP_Global_Harness'); 9 | gleak.ignore('setImmediate'); 10 | gleak.ignore('clearImmediate'); 11 | 12 | gleak.ignore('DTRACE_NET_SERVER_CONNECTION'); 13 | gleak.ignore('DTRACE_NET_STREAM_END'); 14 | gleak.ignore('DTRACE_NET_SOCKET_READ'); 15 | gleak.ignore('DTRACE_NET_SOCKET_WRITE'); 16 | gleak.ignore('DTRACE_HTTP_SERVER_REQUEST'); 17 | gleak.ignore('DTRACE_HTTP_SERVER_RESPONSE'); 18 | gleak.ignore('DTRACE_HTTP_CLIENT_REQUEST'); 19 | gleak.ignore('DTRACE_HTTP_CLIENT_RESPONSE'); 20 | 21 | module.exports = gleak; 22 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/mongoose/node_modules/mongodb/node_modules/bson/tools/jasmine-1.1.0/jasmine_favicon.png -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/ms/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | ./node_modules/.bin/mocha test/test.js 4 | 5 | test-browser: 6 | ./node_modules/.bin/serve test/ 7 | 8 | .PHONY: test 9 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/ms/ms.js: -------------------------------------------------------------------------------- 1 | /** 2 | 3 | # ms.js 4 | 5 | No more painful `setTimeout(fn, 60 * 4 * 3 * 2 * 1 * Infinity * NaN * '☃')`. 6 | 7 | ms('2d') // 172800000 8 | ms('1.5h') // 5400000 9 | ms('1h') // 3600000 10 | ms('1m') // 60000 11 | ms('5s') // 5000 12 | ms('500ms') // 500 13 | ms('100') // '100' 14 | ms(100) // 100 15 | 16 | **/ 17 | 18 | (function (g) { 19 | var r = /(\d*.?\d+)([mshd]+)/ 20 | , _ = {} 21 | 22 | _.ms = 1; 23 | _.s = 1000; 24 | _.m = _.s * 60; 25 | _.h = _.m * 60; 26 | _.d = _.h * 24; 27 | 28 | function ms (s) { 29 | if (s == Number(s)) return Number(s); 30 | r.exec(s.toLowerCase()); 31 | return RegExp.$1 * _[RegExp.$2]; 32 | } 33 | 34 | g.top ? g.ms = ms : module.exports = ms; 35 | })(this); 36 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/ms/test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ms.js tests 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/.npmignore: -------------------------------------------------------------------------------- 1 | *.sw* 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.6 4 | - 0.8 5 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/History.md: -------------------------------------------------------------------------------- 1 | 2 | 0.0.3 / 2012-09-29 3 | ================== 4 | 5 | * faster with negative start args 6 | 7 | 0.0.2 / 2012-09-29 8 | ================== 9 | 10 | * support full [].slice semantics 11 | 12 | 0.0.1 / 2012-09-29 13 | =================== 14 | 15 | * initial release 16 | 17 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @time ./node_modules/.bin/mocha $(T) $(TESTS) 4 | 5 | .PHONY: test 6 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/index.js: -------------------------------------------------------------------------------- 1 | module.exports = exports = require('./lib/sliced'); 2 | -------------------------------------------------------------------------------- /node_modules/mongoose/node_modules/sliced/lib/sliced.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * An Array.prototype.slice.call(arguments) alternative 4 | * 5 | * @param {Object} args something with a length 6 | * @param {Number} slice 7 | * @param {Number} sliceEnd 8 | * @api public 9 | */ 10 | 11 | module.exports = function (args, slice, sliceEnd) { 12 | var ret = []; 13 | var len = args.length; 14 | 15 | if (0 === len) return ret; 16 | 17 | var start = slice < 0 18 | ? Math.max(0, slice + len) 19 | : slice || 0; 20 | 21 | var end = 3 === arguments.length 22 | ? sliceEnd < 0 23 | ? sliceEnd + len 24 | : sliceEnd 25 | : len; 26 | 27 | for (var i = start; i < end; ++i) { 28 | ret[i - start] = args[i]; 29 | } 30 | 31 | return ret; 32 | } 33 | 34 | -------------------------------------------------------------------------------- /node_modules/mongoose/static.js: -------------------------------------------------------------------------------- 1 | 2 | var static = require('node-static'); 3 | var server = new static.Server('.', { cache: 0 }); 4 | 5 | require('http').createServer(function (req, res) { 6 | req.on('end', function () { 7 | server.serve(req, res, function (err) { 8 | if (err) { 9 | console.error(err, req.url); 10 | res.writeHead(err.status, err.headers); 11 | res.end(); 12 | } 13 | }); 14 | }); 15 | }).listen(8088); 16 | 17 | console.error('now listening on localhost:8088'); 18 | -------------------------------------------------------------------------------- /node_modules/underscore/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | Rakefile 3 | docs/ -------------------------------------------------------------------------------- /node_modules/underscore/CNAME: -------------------------------------------------------------------------------- 1 | underscorejs.org 2 | -------------------------------------------------------------------------------- /node_modules/underscore/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## How to contribute to Underscore.js 2 | 3 | * Before you open a ticket or send a pull request, [search](https://github.com/documentcloud/underscore/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one. 4 | 5 | * Before sending a pull request for a feature, be sure to have [tests](http://underscorejs.org/test/test.html). 6 | 7 | * Use the same coding style as the rest of the [codebase](https://github.com/documentcloud/underscore/blob/master/underscore.js). 8 | 9 | * In your pull request, do not add documentation or re-build the minified `underscore-min.js` file. We'll do those things before cutting a new release. -------------------------------------------------------------------------------- /node_modules/underscore/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009-2012 Jeremy Ashkenas, DocumentCloud 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /node_modules/underscore/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/underscore/favicon.ico -------------------------------------------------------------------------------- /node_modules/underscore/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./underscore'); 2 | -------------------------------------------------------------------------------- /node_modules/underscore/raw/underscore.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/node_modules/underscore/raw/underscore.psd -------------------------------------------------------------------------------- /node_modules/util/node_modules/events.node/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Joyent", 4 | "url": "http://www.joyent.com" 5 | }, 6 | "name": "events.node", 7 | "description": "Node.JS events module (packaged for Node.JS and Ender.JS)", 8 | "keywords": [ 9 | "ender", 10 | "events" 11 | ], 12 | "version": "0.4.9", 13 | "homepage": "http://nodejs.org/docs/v0.4.9/api/events.html", 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/coolaj86/nodejs-libs-4-browser.git" 17 | }, 18 | "provides": "events", 19 | "main": "./events.js", 20 | "directories": { 21 | "lib": "." 22 | }, 23 | "engines": { 24 | "node": ">= 0.2.0", 25 | "ender": ">= 0.5.0" 26 | }, 27 | "dependencies": {}, 28 | "devDependencies": {}, 29 | "_id": "events.node@0.4.9", 30 | "readme": "ERROR: No README.md file found!", 31 | "dist": { 32 | "shasum": "7c206e19a6f4dccee7749e709e3e53b553f0224b" 33 | }, 34 | "_from": "events.node@>= 0.4.0" 35 | } 36 | -------------------------------------------------------------------------------- /node_modules/util/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": { 3 | "name": "Joyent", 4 | "url": "http://www.joyent.com" 5 | }, 6 | "name": "util", 7 | "description": "Node.JS util module", 8 | "keywords": [ 9 | "ender", 10 | "util" 11 | ], 12 | "version": "0.4.9", 13 | "homepage": "http://nodejs.org/docs/v0.4.9/api/util.html", 14 | "repository": { 15 | "type": "git", 16 | "url": "git://github.com/coolaj86/nodejs-libs-4-browser.git" 17 | }, 18 | "main": "./util.js", 19 | "directories": { 20 | "lib": "." 21 | }, 22 | "engines": { 23 | "node": ">= 0.2.0", 24 | "ender": ">= 0.5.0" 25 | }, 26 | "dependencies": { 27 | "events.node": ">= 0.4.0" 28 | }, 29 | "devDependencies": {}, 30 | "_id": "util@0.4.9", 31 | "readme": "ERROR: No README.md file found!", 32 | "dist": { 33 | "shasum": "8f8e02f90bd8dfcbace75129f301cd860b6bb907" 34 | }, 35 | "_from": "util" 36 | } 37 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name":"expressSimpleBlog", 3 | "description":"Simple Blog example with Express, Jade, Mongoose", 4 | "author":"Hüseyin BABAL ", 5 | "version":"0.0.1", 6 | "private":false, 7 | "scripts":{ 8 | "start":"node app" 9 | }, 10 | "dependencies":{ 11 | "express":"3.0.3", 12 | "jade":"*", 13 | "mongoose":"3.4.0", 14 | "connect-mongo":"0.2.0", 15 | "config":"0.4.18", 16 | "util":"0.4.9", 17 | "devnull":"0.0.9", 18 | "async":"0.1.22", 19 | "crypto":"0.0.3", 20 | "underscore":"1.4.2" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /public/assets/ico/apple-touch-icon-114-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/ico/apple-touch-icon-114-precomposed.png -------------------------------------------------------------------------------- /public/assets/ico/apple-touch-icon-144-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/ico/apple-touch-icon-144-precomposed.png -------------------------------------------------------------------------------- /public/assets/ico/apple-touch-icon-57-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/ico/apple-touch-icon-57-precomposed.png -------------------------------------------------------------------------------- /public/assets/ico/apple-touch-icon-72-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/ico/apple-touch-icon-72-precomposed.png -------------------------------------------------------------------------------- /public/assets/ico/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/ico/favicon.ico -------------------------------------------------------------------------------- /public/assets/img/bootstrap-mdo-sfmoma-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/bootstrap-mdo-sfmoma-01.jpg -------------------------------------------------------------------------------- /public/assets/img/bootstrap-mdo-sfmoma-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/bootstrap-mdo-sfmoma-02.jpg -------------------------------------------------------------------------------- /public/assets/img/bootstrap-mdo-sfmoma-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/bootstrap-mdo-sfmoma-03.jpg -------------------------------------------------------------------------------- /public/assets/img/bs-docs-bootstrap-features.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/bs-docs-bootstrap-features.png -------------------------------------------------------------------------------- /public/assets/img/bs-docs-masthead-pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/bs-docs-masthead-pattern.png -------------------------------------------------------------------------------- /public/assets/img/bs-docs-responsive-illustrations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/bs-docs-responsive-illustrations.png -------------------------------------------------------------------------------- /public/assets/img/bs-docs-twitter-github.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/bs-docs-twitter-github.png -------------------------------------------------------------------------------- /public/assets/img/example-sites/8020select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/example-sites/8020select.png -------------------------------------------------------------------------------- /public/assets/img/example-sites/adoptahydrant.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/example-sites/adoptahydrant.png -------------------------------------------------------------------------------- /public/assets/img/example-sites/breakingnews.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/example-sites/breakingnews.png -------------------------------------------------------------------------------- /public/assets/img/example-sites/fleetio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/example-sites/fleetio.png -------------------------------------------------------------------------------- /public/assets/img/example-sites/gathercontent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/example-sites/gathercontent.png -------------------------------------------------------------------------------- /public/assets/img/example-sites/jshint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/example-sites/jshint.png -------------------------------------------------------------------------------- /public/assets/img/example-sites/kippt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/example-sites/kippt.png -------------------------------------------------------------------------------- /public/assets/img/example-sites/soundready.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/example-sites/soundready.png -------------------------------------------------------------------------------- /public/assets/img/examples/bootstrap-example-carousel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/bootstrap-example-carousel.png -------------------------------------------------------------------------------- /public/assets/img/examples/bootstrap-example-fluid.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/bootstrap-example-fluid.jpg -------------------------------------------------------------------------------- /public/assets/img/examples/bootstrap-example-hero.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/bootstrap-example-hero.jpg -------------------------------------------------------------------------------- /public/assets/img/examples/bootstrap-example-marketing-narrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/bootstrap-example-marketing-narrow.png -------------------------------------------------------------------------------- /public/assets/img/examples/bootstrap-example-signin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/bootstrap-example-signin.png -------------------------------------------------------------------------------- /public/assets/img/examples/bootstrap-example-starter.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/bootstrap-example-starter.jpg -------------------------------------------------------------------------------- /public/assets/img/examples/bootstrap-example-sticky-footer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/bootstrap-example-sticky-footer.png -------------------------------------------------------------------------------- /public/assets/img/examples/browser-icon-chrome.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/browser-icon-chrome.png -------------------------------------------------------------------------------- /public/assets/img/examples/browser-icon-firefox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/browser-icon-firefox.png -------------------------------------------------------------------------------- /public/assets/img/examples/browser-icon-safari.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/browser-icon-safari.png -------------------------------------------------------------------------------- /public/assets/img/examples/slide-01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/slide-01.jpg -------------------------------------------------------------------------------- /public/assets/img/examples/slide-02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/slide-02.jpg -------------------------------------------------------------------------------- /public/assets/img/examples/slide-03.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/examples/slide-03.jpg -------------------------------------------------------------------------------- /public/assets/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /public/assets/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /public/assets/img/grid-baseline-20px.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/grid-baseline-20px.png -------------------------------------------------------------------------------- /public/assets/img/less-logo-large.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/less-logo-large.png -------------------------------------------------------------------------------- /public/assets/img/responsive-illustrations.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/assets/img/responsive-illustrations.png -------------------------------------------------------------------------------- /public/assets/js/google-code-prettify/prettify.css: -------------------------------------------------------------------------------- 1 | .com { color: #93a1a1; } 2 | .lit { color: #195f91; } 3 | .pun, .opn, .clo { color: #93a1a1; } 4 | .fun { color: #dc322f; } 5 | .str, .atv { color: #D14; } 6 | .kwd, .prettyprint .tag { color: #1e347b; } 7 | .typ, .atn, .dec, .var { color: teal; } 8 | .pln { color: #48484c; } 9 | 10 | .prettyprint { 11 | padding: 8px; 12 | background-color: #f7f7f9; 13 | border: 1px solid #e1e1e8; 14 | } 15 | .prettyprint.linenums { 16 | -webkit-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 17 | -moz-box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 18 | box-shadow: inset 40px 0 0 #fbfbfc, inset 41px 0 0 #ececf0; 19 | } 20 | 21 | /* Specify class=linenums on a pre to get line numbering */ 22 | ol.linenums { 23 | margin: 0 0 0 33px; /* IE indents via margin-left */ 24 | } 25 | ol.linenums li { 26 | padding-left: 12px; 27 | color: #bebec5; 28 | line-height: 20px; 29 | text-shadow: 0 1px 0 #fff; 30 | } -------------------------------------------------------------------------------- /public/images/bootstrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/images/bootstrap.png -------------------------------------------------------------------------------- /public/images/express-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/images/express-logo.png -------------------------------------------------------------------------------- /public/images/jade-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/huseyinbabal/expressSimpleBlog/46f90eba4305cab25c156715d971a8dcaa24913a/public/images/jade-logo.png -------------------------------------------------------------------------------- /public/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 50px; 3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 4 | } 5 | 6 | a { 7 | color: #00B7FF; 8 | } -------------------------------------------------------------------------------- /views/403.jade: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /views/404.jade: -------------------------------------------------------------------------------- 1 | // 2 | Created with JetBrains WebStorm. 3 | User: huseyin 4 | Date: 11/26/12 5 | Time: 5:05 PM 6 | To change this template use File | Settings | File Templates. 7 | 8 | -------------------------------------------------------------------------------- /views/500.jade: -------------------------------------------------------------------------------- 1 | // 2 | Created with JetBrains WebStorm. 3 | User: huseyin 4 | Date: 11/26/12 5 | Time: 5:05 PM 6 | To change this template use File | Settings | File Templates. 7 | 8 | -------------------------------------------------------------------------------- /views/blog-detail.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | section#tables 5 | h2 #{blogInfo.title} 6 | p 7 | | #{blogInfo.text} 8 | h3 Comments 9 | -if(blogInfo.comments.length > 0) 10 | -each comment, i in blogInfo.comments 11 | .media 12 | .media-body 13 | .media-heading 14 | h4 #{comment.text} 15 | p 16 | | by #{comment.author} on #{comment.createDate} 17 | form(style='padding-bottom: 15px;', action='/blog/comment', method='POST') 18 | .controls 19 | textarea(rows='10', name='text') 20 | input(type='hidden', name='blogID', value='#{blogInfo._id}') 21 | input(type='hidden', name='_csrf', value='#{token}') 22 | .form-actions 23 | button.btn.btn-primary(type='submit') Post comment 24 | -else 25 | .alert.alert-block 26 | | No comments 27 | form(style='padding-bottom: 15px;', action='/blog/comment', method='POST') 28 | .controls 29 | textarea(rows='10', name='text') 30 | input(type='hidden', name='blogID', value='#{blogInfo._id}') 31 | input(type='hidden', name='_csrf', value='#{token}') 32 | .form-actions 33 | button.btn.btn-primary(type='submit') Post comment -------------------------------------------------------------------------------- /views/blog-list.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | section#tables 5 | h2 Latest blog posts 6 | div 7 | -if(blogPosts.length > 0) 8 | table.table 9 | thead 10 | tr 11 | th # 12 | th Title 13 | th Author 14 | th Date 15 | tbody 16 | -each blogpost, i in blogPosts 17 | tr 18 | td #{i+1} 19 | td 20 | a(href='/blog/#{blogpost.slug}/') 21 | | #{blogpost.title} 22 | td @#{blogpost.author} 23 | td #{blogpost.createDate} 24 | -else 25 | .alert.alert-block 26 | | There is no recent post 27 | -------------------------------------------------------------------------------- /views/blog-new.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | section#tables 5 | -if(error) 6 | .alert.alert-error 7 | | #{error} 8 | h2 New blog post 9 | form(style='padding-bottom: 15px;', action='/blog/create/', method='POST') 10 | .controls 11 | input.input-xxlarge(type='text', placeholder='Post Title', name='title') 12 | .controls 13 | textarea(rows='10', name='text') 14 | input(type='hidden', name='_csrf', value='#{token}') 15 | .form-actions 16 | button.btn.btn-primary(type='submit') Create post 17 | button.btn(type='button') Cancel 18 | -else 19 | h2 New blog post 20 | form(style='padding-bottom: 15px;', action='/blog/create/', method='POST') 21 | .controls 22 | input.input-xxlarge(type='text', placeholder='Post Title', name='title') 23 | .controls 24 | textarea(rows='10', name='text') 25 | input(type='hidden', name='_csrf', value='#{token}') 26 | .form-actions 27 | button.btn.btn-primary(type='submit') Create post 28 | button.btn(type='button') Cancel -------------------------------------------------------------------------------- /views/index.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | .row-fluid 5 | ul 6 | li 7 | ul 8 | li 9 | ul.thumbnails 10 | li.span4 11 | .thumbnail 12 | img(src="/images/express-logo.png") 13 | li.span4 14 | .thumbnail 15 | img(src="/images/jade-logo.png") 16 | li.span4 17 | .thumbnail 18 | img(src="/images/bootstrap.png") 19 | -------------------------------------------------------------------------------- /views/login.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | -if(error) 5 | .alert.alert-error 6 | | #{error} 7 | -else 8 | section 9 | h2 Login 10 | form#form_login(action='/user/login/', style='margin: 0; padding: 3px 15px;', accept-charset='utf-8', method='post') 11 | fieldset.control-group 12 | label.control-label(for='form_email') Email address 13 | .controls 14 | .input-prepend(style='white-space: nowrap;') 15 | span.add-on 16 | i.icon-envelope 17 | input#form_email.span2(type='email', name='email', autocomplete='on') 18 | fieldset.control-group 19 | label.control-label(for='form_password') Password 20 | .controls 21 | .input-prepend(style='white-space: nowrap;') 22 | span.add-on 23 | i.icon-lock 24 | input#form_password.span2(type='password', name='password') 25 | label.checkbox 26 | input(type='checkbox', name='remember', value='true') 27 | | Remember me 28 | input(type='hidden', name='_csrf', value='#{token}') 29 | p.navbar-text 30 | button.btn.btn-primary(type='submit') Login 31 | -------------------------------------------------------------------------------- /views/register.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | -if(error) 5 | .alert.alert-error 6 | | #{error} 7 | -else 8 | section 9 | h2 Register 10 | form#form_login(action='/user/register/', style='margin: 0; padding: 3px 15px;', accept-charset='utf-8', method='post') 11 | fieldset.control-group 12 | label.control-label(for='form_email') Email address 13 | .controls 14 | .input-prepend(style='white-space: nowrap;') 15 | span.add-on 16 | i.icon-envelope 17 | input#form_email.span2(type='email', name='email', autocomplete='on') 18 | fieldset.control-group 19 | label.control-label(for='form_password') Password 20 | .controls 21 | .input-prepend(style='white-space: nowrap;') 22 | span.add-on 23 | i.icon-lock 24 | input#form_password.span2(type='password', name='password') 25 | input(type='hidden', name='_csrf', value='#{token}') 26 | p.navbar-text 27 | button.btn.btn-primary(type='submit') Register 28 | --------------------------------------------------------------------------------