Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
make doc
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Dec 23, 2010
1 parent c5aba2e commit 68a2815
Show file tree
Hide file tree
Showing 5 changed files with 70 additions and 1 deletion.
6 changes: 6 additions & 0 deletions doc/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,3 +216,9 @@ npm-changelog(1) -- Changes
* 0.2.12:
Various bugfixes (0.2.11 was big, broke some stuff)
`npm faq` command (wrapper for `npm help faq`)

* 0.2.13:
Merry Xmas!
Config setting on the command line with grace and gusto
Portability and stability fixes.
Mostly sort of works with Homebrew-installed nodejs.
47 changes: 47 additions & 0 deletions lib/xmas.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// happy xmas
var output = require("./utils/output")
, npm = require("../npm")
, log = require("./utils/log")
module.exports = function (args, cb) {
npm.config.set("loglevel", "win")
var s = " \u2605"
, f = "\uFF0F"
, b = "\uFF3C"
, o = [ "\u0069" , "\u0020", "\u0020", "\u0020", "\u0020", "\u0020"
, "\u0020", "\u0020", "\u0020", "\u0020", "\u0020", "\u0020"
, "\u0020", "\u2E1B","\u2042","\u2E2E","&","@","\uFF61" ]
, oc = [21,33,34,35,36,37]
, l = "\u005e"

function w (s) { process.binding("stdio").writeError(s) }

w("\n")
;(function T (H) {
for (var i = 0; i < H; i ++) w(" ")
w("\033[33m"+s+"\n")
var M = H * 2 - 1
for (L = 1; L <= H; L ++) {
var O = L * 2 - 2
var S = (M - O) / 2
for (var i = 0; i < S; i ++) w(" ")
w("\033[32m"+f)
for (var i = 0; i < O; i ++) w(
"\033["+oc[Math.floor(Math.random()*oc.length)]+"m"+
o[Math.floor(Math.random() * o.length)]
)
w("\033[32m"+b+"\n")
}
w(" ")
for (var i = 1; i < H; i ++) w("\033[32m"+l)
w("| |")
for (var i = 1; i < H; i ++) w("\033[32m"+l)
if (H > 10) {
w("\n ")
for (var i = 1; i < H; i ++) w(" ")
w("| |")
for (var i = 1; i < H; i ++) w(" ")
}
})(20)
w("\n\n")
log.win("Happy Xmas, Noders!", "loves you", cb)
}
13 changes: 13 additions & 0 deletions man1/changelog.1
Original file line number Diff line number Diff line change
Expand Up @@ -465,5 +465,18 @@ Various bugfixes (0\.2\.11 was big, broke some stuff)
.br
\fBnpm faq\fR command (wrapper for \fBnpm help faq\fR)
.
.IP "\(bu" 4
0\.2\.13:
Merry Xmas!
.
.br
Config setting on the command line with grace and gusto
.
.br
Portability and stability fixes\.
.
.br
Mostly sort of works with Homebrew\-installed nodejs\.
.
.IP "" 0

4 changes: 3 additions & 1 deletion man1/faq.1
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ upcoming version:
.P
\fIhttps://github\.com/isaacs/npm/issues/issue/294\fR
.
.SH "What is a `package`"
.SH "What is a `package`?"
A package is:
.
.IP "\(bu" 4
Expand All @@ -65,6 +65,8 @@ b) a gzipped tarball containing (a)
.
.IP "\(bu" 4
c) a url that resolves to (b)
.
.IP "\(bu" 4
d) a \fB<name>@<version>\fR that is published on the registry with (c)
.
.IP "\(bu" 4
Expand Down
1 change: 1 addition & 0 deletions npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ var commandCache = {}
, "run-script"
, "set"
, "get"
, "xmas"
]
, plumbing = [ "build"
, "update-dependents"
Expand Down

0 comments on commit 68a2815

Please sign in to comment.