Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chdir-promise

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chdir-promise - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

2

index.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc