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
path: root/npm.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-03-24 22:31:22 +0300
committerisaacs <i@izs.me>2010-03-24 22:31:22 +0300
commit2ddd12f6d1da68406bd5fe54141d9dd671a514fc (patch)
treede53e7ab088fb3054d2e7d8025f14dd4d421d92b /npm.js
parent14bdd23f1304732c95aa58d96ba55b0a482f0eff (diff)
save the config on exit
Diffstat (limited to 'npm.js')
-rwxr-xr-xnpm.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/npm.js b/npm.js
index ebe0e643f..ee201e4b8 100755
--- a/npm.js
+++ b/npm.js
@@ -51,3 +51,6 @@ Object.defineProperty(npm, "tmp",
, enumerable:true
});
+process.addListener("exit", function () {
+ npm.config.save();
+});