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.1.0 to 0.2.0

3

index.js

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

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