Skip to content

Commit

Permalink
Replace strip-eof with strip-final-newline (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
piuccio authored May 28, 2021
1 parent 956476f commit 19774d0
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 52 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ language: node_js
node_js:
- 12
- 14
- 16
cache: npm
2 changes: 1 addition & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ if (argv.l) {
} else {
require('get-stdin')().then((data) => {
if (data) {
argv._ = [require('strip-eof')(data)];
argv._ = [require('strip-final-newline')(data)];
say();
} else {
yargs.showHelp();
Expand Down
76 changes: 28 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
"test": "tape test/**/*.js | tap-dot"
},
"dependencies": {
"get-stdin": "^5.0.1",
"get-stdin": "8.0.0",
"string-width": "~2.1.1",
"strip-eof": "^1.0.0",
"strip-final-newline": "2.0.0",
"yargs": "15.4.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "15.0.0",
"@rollup/plugin-node-resolve": "9.0.0",
"execa": "4.0.3",
"execa": "5.0.0",
"rollup": "2.26.5",
"rollup-plugin-string": "3.0.0",
"tap-dot": "2.0.0",
Expand Down

0 comments on commit 19774d0

Please sign in to comment.