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

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

var fs = require("fs"),
  version = process.env["npm.package.version"],
  bin = "/usr/local/bin/npm";

fs.lstat(bin, function (er, st) {
  if (er) return;
  fs.unlink(bin, function (er) {
    if (er) throw er;
  });
});