Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'man1/coding-style.1')
-rw-r--r--man1/coding-style.115
1 files changed, 14 insertions, 1 deletions
diff --git a/man1/coding-style.1 b/man1/coding-style.1
index 155560dc7..74d1a8eaf 100644
--- a/man1/coding-style.1
+++ b/man1/coding-style.1
@@ -1,7 +1,7 @@
.\" Generated with Ronnjs/v0.1
.\" http://github.com/kapouer/ronnjs/
.
-.TH "NPM\-CODING\-STYLE" "1" "January 2011" "" ""
+.TH "NPM\-CODING\-STYLE" "1" "March 2011" "" ""
.
.SH "NAME"
\fBnpm-coding-style\fR \-\- npm\'s "funny" coding style
@@ -240,3 +240,16 @@ and are rarely used\.
Use a single uppercase letter for function names where the function
would normally be anonymous, but needs to call itself recursively\. It
makes it clear that it\'s a "throwaway" function\.
+.
+.SH "null, undefined, false, 0"
+Boolean variables and functions should always be either \fBtrue\fR or \fBfalse\fR\|\. Don\'t set it to 0 unless it\'s supposed to be a number\.
+.
+.P
+When something is intentionally missing or removed, set it to \fBnull\fR\|\.
+.
+.P
+Don\'t set things to \fBundefined\fR\|\. Reserve that value to mean "not yet
+set to anything\."
+.
+.P
+Boolean objects are verboten\.