Skip to content

Commit

Permalink
Add executable file.
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Jun 29, 2018
1 parent ecf08ad commit 5a4f410
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env node

if (process.argv.some(function (arg) { return /-h|--help/.test(arg) })) {
console.log('usage: mini-unassert < inputfile.js > outputfile.js')
process.exit(0)
}

process.stdin
.pipe(require('.')({}))
.pipe(process.stdout)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
],
"license": "Apache-2.0",
"main": "index.js",
"bin": "bin.js",
"repository": {
"type": "git",
"url": "https://github.com/goto-bus-stop/mini-unassert.git"
Expand Down

0 comments on commit 5a4f410

Please sign in to comment.