Ryan Dahl
8185e1fd25
Remove include() add node.mixin()
include() should not be used by libraries because it will pollute the global
namespace. To discourage this behavior and bring Node more in-line with
the current CommonJS module system, include() is removed.
Small scripts like unit tests often times do want to pollute the global
namespace for ease. To avoid the boiler plate code of
var x = require("/x.js");
var foo = x.foo;
var bar = x.bar;
The function node.mixin() is stolen from jQuery's jQuery.extend. So that it
can be written:
node.mixin(require("/x.js"));
Reference:
http://docs.jquery.com/Utilities/jQuery.extend
http://groups.google.com/group/nodejs/browse_thread/thread/f9ac83e5c11e7e87
15 years ago
Ryan Dahl
522909bcbf
Parse queryString into req.uri.params
15 years ago
Ryan Dahl
4c51af882d
Fix typo
15 years ago
Ryan Dahl
e2b7902469
Don't use parseUri for HTTP server
The big parseUri RE was showing up often in profiles - this is simpler and
yields better performance by taking advantage of the C http parser.
15 years ago
Ryan Dahl
7b8842b619
Modify node_addon configure api
15 years ago
Ryan Dahl
5c9fe1fce1
Update addon documentation
15 years ago
Ryan Dahl
bf0d278a45
Improve "make dist" remove generated doc from repo.
15 years ago
Felix Geisendörfer
eeaa267cbe
Documentation for Multipart parser
Also added multipart.parse as a convenience function
15 years ago
Ryan Dahl
763137e705
chat.tinyclouds.org -> chat.nodejs.org
15 years ago
Ryan Dahl
9c9d67eb6c
bump version
15 years ago
Ryan Dahl
a8c0211e73
Bugfix: require() and include() should work in callbacks.
Removing requireAsync and includeAsync from global scope for now as a
temporary fix. Reported by Yuffster.
15 years ago
Ryan Dahl
1ae69a68a4
Clean up some text in documentation.
15 years ago
Ryan Dahl
4ba5b7e24b
Add doc for node.compile()
15 years ago
Ryan Dahl
e972add0ea
Update module loading docs
15 years ago
Ryan Dahl
9f07a690c6
docs: Reference node.libraryPaths in helpers section.
15 years ago
Ryan Dahl
27738d8e60
Clean up some things in the repl, add docs.
15 years ago
Ryan Dahl
23c7f472d0
API: Move node.exit() to process.exit().
15 years ago
Ryan Dahl
095470854b
Move tcp library to /tcp.js
15 years ago
Ryan Dahl
f6657c3c9d
Move http library to /http.js
15 years ago
Ryan Dahl
7abad8b7b3
API: Move node.puts(), node.exec() and others to /utils.js
15 years ago
Ryan Dahl
3e7f0deef9
Add docbook documentation
15 years ago
Ryan Dahl
4f69871c17
Add node.inspect() and deprecate p().
15 years ago
Ryan Dahl
2f56ccb45e
bump version
15 years ago
Ryan Dahl
cfffa0bdd8
Clean up website a bit.
15 years ago
Ryan Dahl
55a2e8271e
Decrease default TCP backlog to 128
...after seeing http://lionet.livejournal.com/42016.html
15 years ago
Ryan Dahl
2d256f34c5
Change example at beginning of api.txt
15 years ago
Ryan Dahl
8c7babdf10
Syntax highlighting for <tt> elements.
15 years ago
Ryan Dahl
a3229ed7b7
Add documentation about requiring system modules.
15 years ago
Ryan Dahl
e0ec0036ca
Add connection.setNoDelay() to disable Nagle algorithm.
15 years ago
Felix Geisendörfer
be3dddeec9
Syntax highlighting for api.html.
Asciidoc does not seem to support including custom JS, so this patch is a hack
for toc.js to dynamically include the needed CSS / JS. It should be ok unless
somebody has a better approach ...
15 years ago
Ryan Dahl
07792afe0a
Remove "raw" encoding. Rename "raws" to "binary".
Deprecation warnings have been added to help the conversion to this new API.
15 years ago
Ryan Dahl
5ddc4f5d0c
bump version
15 years ago
Ryan Dahl
6f31a3763d
Add more explanation to docs for request.finish().
15 years ago
Ryan Dahl
9db2e5f375
Default to utf8 encoding for node.fs.cat()
15 years ago
Ryan Dahl
16185ae57e
update doc for node.fs.write()
15 years ago
Ryan Dahl
083d150bc4
Add node.exec()
15 years ago
Ryan Dahl
fdc136df69
Add documentation for promise.emitSuccess and emitError
15 years ago
Ryan Dahl
7fa694a3b6
fix typo on website
15 years ago
Ryan Dahl
0d1ec5fdbe
API: node.fs.read() takes a normal encoding parameter.
Removes node.UTF8, node.RAW, node.ASCII enum versions of the encodings.
node.fs.read() now supports "raws" encoding.
15 years ago
Ryan Dahl
69e8a01c58
Fix broken asciidoc section
15 years ago
Ryan
dbe116ddfe
API: Change arguments of emit(), emitSuccess(), emitError()
Instead of
myemitter.emit("event", [arg1, arg2, arg3]);
the API is now
myemitter.emit("event", arg1, arg2, arg3);
This change saves the creation of an extra array object for each event.
The implementation is also slightly more simple.
15 years ago
Ryan
97355f3613
spell check api.txt
15 years ago
Ryan
12bb0d46ce
bump version
15 years ago
Ryan
5629fd574a
Add doc note about 'raws' encoding
15 years ago
Ryan
d03c7e38e9
Just add the gernerated doc files. Make life easier.
15 years ago
Ryan
d851bf9a66
Revert "Add xsl files to doc directory so people can build docs easily"
This reverts commit 412b4636c8
.
15 years ago
Ryan
412b4636c8
Add xsl files to doc directory so people can build docs easily
15 years ago
Ryan
241950c1df
Add isDirectory(), isFile(), isSocket(), ... methods to stats object.
Thanks to Felix Geisendörfer for the initial patch.
15 years ago
Ryan
dc39e82024
Add access to user environment via ENV
15 years ago
Ryan
68dda0a7d8
Man page generation.
15 years ago