Add small crappy manpage (please improve)
authorRyan Dahl <ry@tinyclouds.org>
Mon, 15 Nov 2010 07:12:43 +0000 (23:12 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Mon, 15 Nov 2010 07:12:43 +0000 (23:12 -0800)
.gitignore
Makefile
doc/node.1 [new file with mode: 0644]

index db3511b..46b925d 100644 (file)
@@ -7,7 +7,6 @@ tags
 doc/api.xml
 doc/api/*.html
 doc/changelog.html
-doc/node.1
 tools/nodejs.pc
 test/fixtures/hello.txt
 tmp/
index ae6332c..bd1901c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,7 +60,7 @@ website-upload: doc
        scp doc/* ryan@nodejs.org:~/web/nodejs.org/
 
 docclean:
-       @-rm -f doc/node.1 doc/api/*.html doc/changelog.html
+       @-rm -f doc/api/*.html doc/changelog.html
 
 clean:
        @$(WAF) clean
diff --git a/doc/node.1 b/doc/node.1
new file mode 100644 (file)
index 0000000..9defd48
--- /dev/null
@@ -0,0 +1,62 @@
+.TH NODE.JS "1" "2010" "" ""
+
+
+.SH "NAME"
+node \- Server-side JavaScript
+
+.SH SYNOPSIS
+
+
+.B node
+[
+.B \-v
+]
+[
+.B \-\-debug
+|
+.B \-\-debug-brk
+]
+[
+.B \-\-v8-options
+]
+.br
+     [
+.B \-e
+.I command
+|
+.I script.js
+]
+[
+.I arguments
+]
+
+Execute without arguments to start the REPL.
+
+
+.SH DESCRIPTION
+
+Node is a set of libraries for javascript which allows
+it to be used outside of the browser. It is primarally
+focused on creating simple, easy to build network clients
+and servers.
+
+
+.SH ENVIRONMENT VARIABLES
+
+.IP NODE_PATH
+':'-separated list of directories prefixed to the module search path,
+require.paths.
+
+.IP NODE_MODULE_CONTEXTS
+If set to 1 then modules will load in their own global contexts.
+
+.IP NODE_DISABLE_COLORS
+If set to 1 then colors will not be used in the REPL.
+
+.SH RESOURCES AND DOCUMENTATION
+
+See the website for documentation http://nodejs.org/
+
+Mailing list: http://groups.google.com/group/nodejs
+
+IRC: irc.freenode.net #node.js