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

bootstrap.js « scripts - github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0e3a9c7fc92edc110b366b84c3201f933f5d5112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env node

var sys = require("sys");

function print (m, cr) { process.stdio.writeError(m+(cr===false?"":"\n")); return print }

require("../npm").install("http://github.com/isaacs/npm/tarball/master", function (er, ok) {
  if (er) {
    sys.error("\nFailed after "+ok.length+" step(s)\n");
    throw er;
  } else print("It worked!");
});