Skip to content

Commit

Permalink
fix: bin version. fixes #98
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Oct 10, 2018
1 parent 5ed860c commit 2c95c35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/csv-parser
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const minimist = require('minimist')
const ndjson = require('ndjson')
const fs = require('fs')
const csv = require('../')
const pkg = require('../package.json')

const argv = minimist(process.argv, {
alias: {
Expand All @@ -27,7 +28,7 @@ const headers = argv.headers && argv.headers.toString().split(argv.separator)
const [,, filename] = argv._

if (argv.version) {
console.log(require('./package').version)
console.log(pkg.version)
process.exit(0)
}

Expand Down

0 comments on commit 2c95c35

Please sign in to comment.