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.0 to 0.0.1

.travis.yml

10

package.json
{
"name": "chdir-promise",
"version": "0.0.0",
"version": "0.0.1",
"description": "Change working dir and return a promise, a stack of folders is maintained to jump back",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node test/chdir-promise-spec.js"
},

@@ -36,3 +36,7 @@ "repository": {

"spots": "0.3.0"
}
},
"devDependencies": {
"pre-git": "0.1.1"
},
"pre-commit": "npm test"
}

@@ -5,2 +5,8 @@ # chdir-promise

[![NPM][chdir-promise-icon] ][chdir-promise-url]
[![Build status][chdir-promise-ci-image] ][chdir-promise-ci-url]
[![dependencies][chdir-promise-dependencies-image] ][chdir-promise-dependencies-url]
[![devdependencies][chdir-promise-devdependencies-image] ][chdir-promise-devdependencies-url]
```js

@@ -18,7 +24,7 @@ var folders = require('chdir-promise');

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

@@ -72,1 +78,10 @@

OTHER DEALINGS IN THE SOFTWARE.
[chdir-promise-icon]: https://nodei.co/npm/chdir-promise.png?downloads=true
[chdir-promise-url]: https://npmjs.org/package/chdir-promise
[chdir-promise-ci-image]: https://travis-ci.org/bahmutov/chdir-promise.png?branch=master
[chdir-promise-ci-url]: https://travis-ci.org/bahmutov/chdir-promise
[chdir-promise-dependencies-image]: https://david-dm.org/bahmutov/chdir-promise.png
[chdir-promise-dependencies-url]: https://david-dm.org/bahmutov/chdir-promise
[chdir-promise-devdependencies-image]: https://david-dm.org/bahmutov/chdir-promise/dev-status.png
[chdir-promise-devdependencies-url]: https://david-dm.org/bahmutov/chdir-promise#info=devDependencies
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