Socket
Socket
Sign inDemoInstall

atom-plugin-command-line

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    atom-plugin-command-line

Run a child process within an Atom plugin. Returns a promise with the output.


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
3.69 kB
Created
Weekly downloads
 

Readme

Source

Atom Plugin Command Line

Run a child process within an Atom plugin. Returns a promise with the output.

Setup

> npm install atom-plugin-command-line

Example

import commandLine from 'atom-plugin-command-line';

function getNodeVersion() {
  return commandLine('node', '-v').then((res) => {
    if (!res) {
      console.log('Node not installed');
      return false;
    } else {
      return res.match(/([0-9]+)\.([0-9]+)/);
    }
  });
}

Keywords

FAQs

Last updated on 17 May 2016

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