vlc-command

1.2.0 • Public • Published

vlc-command travis npm downloads javascript style guide

Find VLC player command line path

install

npm install vlc-command

usage

var cp = require('child_process')
var vlcCommand = require('vlc-command')
 
vlcCommand(function (err, cmd) {
  if (err) return console.error('could not find vlc command path')
 
  if (process.platform === 'win32') {
    cp.execFile(cmd, ['--version'], function (err, stdout) {
      if (err) return console.error(err)
      console.log(stdout)
    })
  } else {
    cp.exec(cmd + ' --version', function (err, stdout) {
      if (err) return console.error(err)
      console.log(stdout)
    })
  }
})

license

MIT. Copyright (c) Feross Aboukhadijeh.

Package Sidebar

Install

npm i vlc-command

Weekly Downloads

647

Version

1.2.0

License

MIT

Unpacked Size

6.29 kB

Total Files

5

Last publish

Collaborators

  • feross