Socket
Socket
Sign inDemoInstall

vlc-command

Package Overview
Dependencies
3
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vlc-command

Find VLC player command line path


Version published
Maintainers
1
Install size
67.0 kB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 23 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc