Skip to content

Commit

Permalink
fix: readme example tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Oct 28, 2017
1 parent 670ed5f commit 51a6c06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ you to save extra empty function.
// second hop is deferred
chdir.to('first/folder')
.then(chdir.back)
.to(() => chdir.to('second/folder'))
.then(() => chdir.to('second/folder'))
```

```js
// equivalent
chdir.to('first/folder')
.then(chdir.back)
.to(chdir.nextTo('second/folder'))
.then(chdir.nextTo('second/folder'))
```

Implemented using [bluebird][https://github.com/petkaantonov/bluebird],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"unit": "mocha test/*-spec.js",
"demo": "DEBUG=chdir-promise node test/demo.js",
"deps": "deps-ok && dependency-check --no-dev .",
"semantic-release": "semantic-release",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"commit": "commit-wizard",
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
"pretty": "prettier-standard *.js src/*.js test/*.js",
Expand Down Expand Up @@ -57,7 +57,7 @@
"mocha": "^4.0.1",
"pre-git": "3.15.3",
"prettier-standard": "7.0.3",
"semantic-release": "9.0.0",
"semantic-release": "8.2.3",
"standard": "10.0.3"
},
"config": {
Expand Down

0 comments on commit 51a6c06

Please sign in to comment.