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.1 to 0.0.2

2

package.json
{
"name": "chdir-promise",
"version": "0.0.1",
"version": "0.0.2",
"description": "Change working dir and return a promise, a stack of folders is maintained to jump back",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -12,6 +12,7 @@ # chdir-promise

```js
var folders = require('chdir-promise');
folders.to('foo/bar/folder')
var chdir = require('chdir-promise');
// only has two methods: chdir.to and chdir.comeBack
chdir.to('foo/bar/folder')
// do something inside foo/bar/folder
.then(folders.comeBack)
.then(chdir.comeBack)
.done();

@@ -23,7 +24,7 @@ ```

```js
folders.to('foo/bar/folder')
chdir.to('foo/bar/folder')
.then(function () {
return 'foo'; // value to return
})
.tap(folders.comeBack);
.tap(chdir.comeBack);
// resolved with value 'foo'

@@ -30,0 +31,0 @@ ```

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