chdir-promise
Advanced tools
Comparing version 0.1.0 to 0.2.0
@@ -36,4 +36,5 @@ require('lazy-ass'); | ||
to: S(q.try, _to, S), | ||
back: comeBack | ||
back: comeBack, | ||
from: comeBack | ||
}; | ||
{ | ||
"name": "chdir-promise", | ||
"version": "0.1.0", | ||
"version": "0.2.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.back | ||
// only has two methods: chdir.to and chdir.from (alias chdir.back) | ||
chdir.to('foo/bar/folder') | ||
// do something inside foo/bar/folder | ||
.then(chdir.back) | ||
.then(chdir.back) // or chdir.from | ||
.done(); | ||
@@ -19,0 +19,0 @@ ``` |
@@ -11,2 +11,4 @@ require('lazy-ass'); | ||
.then(folders.to(__dirname)) | ||
.then(folders.from) | ||
.then(folders.to(__dirname)) | ||
.then(function () { | ||
@@ -13,0 +15,0 @@ return 'foo'; |
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
5740
49