Skip to content

Commit

Permalink
Fix #28 by stripping the trailing new line (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
doug2k1 authored and piuccio committed Oct 25, 2017
1 parent e3ecdc5 commit 26d3ffd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (argv.l) {
} else {
require("get-stdin")().then(function (data) {
if (data) {
argv._ = [data];
argv._ = [require("strip-eof")(data)];
say();
} else {
showHelp();
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"dependencies": {
"get-stdin": "^5.0.1",
"optimist": "~0.6.1",
"string-width": "~2.1.1"
"string-width": "~2.1.1",
"strip-eof": "^1.0.0"
},
"devDependencies": {
"nodeunit": "~0.11.1",
Expand Down

0 comments on commit 26d3ffd

Please sign in to comment.