chdir-promise
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -36,4 +36,4 @@ require('lazy-ass'); | ||
to: S(q.try, _to, S), | ||
comeBack: comeBack | ||
back: comeBack | ||
}; | ||
{ | ||
"name": "chdir-promise", | ||
"version": "0.0.2", | ||
"version": "0.1.0", | ||
"description": "Change working dir and return a promise, a stack of folders is maintained to jump back", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,6 +13,6 @@ # chdir-promise | ||
var chdir = require('chdir-promise'); | ||
// only has two methods: chdir.to and chdir.comeBack | ||
// only has two methods: chdir.to and chdir.back | ||
chdir.to('foo/bar/folder') | ||
// do something inside foo/bar/folder | ||
.then(chdir.comeBack) | ||
.then(chdir.back) | ||
.done(); | ||
@@ -28,3 +28,3 @@ ``` | ||
}) | ||
.tap(chdir.comeBack); | ||
.tap(chdir.back); | ||
// resolved with value 'foo' | ||
@@ -31,0 +31,0 @@ ``` |
@@ -9,3 +9,3 @@ require('lazy-ass'); | ||
folders.to(__dirname) | ||
.then(folders.comeBack) | ||
.then(folders.back) | ||
.then(folders.to(__dirname)) | ||
@@ -15,3 +15,3 @@ .then(function () { | ||
}) | ||
.tap(folders.comeBack) | ||
.tap(folders.back) | ||
.then(function (result) { | ||
@@ -18,0 +18,0 @@ la(result === 'foo', 'incorrect result', result); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5633