Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 347cb7c6900ed8e6c29d7e404f5b61c38f76f7b1 @tj tj committed Jul 4, 2012
Showing with 898 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +4 −0 .npmignore
  3. +5 −0 History.md
  4. +8 −0 Makefile
  5. +40 −0 Readme.md
  6. +2 −0 index.js
  7. +440 −0 lib/send.js
  8. +47 −0 lib/utils.js
  9. +19 −0 package.json
  10. +1 −0 test/fixtures/.hidden
  11. +1 −0 test/fixtures/name.txt
  12. +1 −0 test/fixtures/nums
  13. +3 −0 test/fixtures/pets/index.html
  14. +1 −0 test/fixtures/some thing.txt
  15. +325 −0 test/send.js
@@ -0,0 +1 @@
+node_modules
@@ -0,0 +1,4 @@
+support
+test
+examples
+*.sock
@@ -0,0 +1,5 @@
+
+0.0.1 / 2010-01-03
+==================
+
+ * Initial release
@@ -0,0 +1,8 @@
+
+test:
+ @./node_modules/.bin/mocha \
+ --require should \
+ --reporter spec \
+ --bail
+
+.PHONY: test
@@ -0,0 +1,40 @@
+
+# send
+
+ Better streaming static file server with Range and conditional-GET support.
+
+## About
+
+ Send is Connect's `static()` extracted for generalized use, a secure file
+ server supporting partial responses (Ranges), conditional-GET negotiation, high test coverage, and emits
+ detailed errors which may be leveraged to take appropriate actions in your application or framework.
+
+ It does _not_ perform internal caching, you should use a reverse proxy cache such
+ as Varnish for this. If your application is small enough that it would benefit from single-node memory caching, it's small enough that it does not need caching at all ;).
+
+ FUD: If you're performing pointless benchmarks, before complaining first consider that node-static does not respect cache-control directives and thus responds faster, but with invalid responses, use a real cache.
+
+## License
+
+(The MIT License)
+
+Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,2 @@
+
+module.exports = require('./lib/send');
Oops, something went wrong.

0 comments on commit 347cb7c

Please sign in to comment.