Skip to content

Commit

Permalink
resolve code reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBrenny committed Mar 9, 2021
1 parent 82fabcf commit e4e2c0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules
yarn.lock
package-lock.json
yarn.lock
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ console.log(shellHistory.path());
//=> '/Users/sindresorhus/.history'
```


## API

### shellHistory()
Expand Down
4 changes: 2 additions & 2 deletions test_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
@echo off

echo Print entire history
node -p "const history = require('.'); history()"
node --print "const history = require('.'); history()"
pause
echo.
echo Print last command (which will be "test_win.bat")
node -p "const history = require('.'); let h = history(); h[h.length - 1]"
node --print "const history = require('.'); let h = history(); h[h.length - 1]"
pause

0 comments on commit e4e2c0d

Please sign in to comment.