Socket
Socket
Sign inDemoInstall

node-startup-manager

Package Overview
Dependencies
4
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-startup-manager

Manage, Add & Remove Startup tasks on windows, mac & linux


Version published
Weekly downloads
14
Maintainers
1
Install size
1.49 MB
Created
Weekly downloads
 

Readme

Source

node-startup-manager

npm version

Manage Startup tasks for OSX, Windows & Linux (Ubuntu & distros based off of Ubuntu) for Node.js apps.

Installation

$ npm install node-startup-manager --save

Code example

var startupManager = require('node-startup-manager');

var opts = {
    path: 'C:/Program Files/RealVNC/VNC Server/vncserver.exe', // Path to app.
    name: 'My_Awesome_App', // What your app shows up in startup list.
    arguments: ['--dev', '--minimized'] // (optional) Arguments applyed to app on startup (Linux & Windows only for now).
};

startupManager.add(opts)
    .then(function() {
        console.log('App added to startup')
    })
    .catch(function(e) {
        Console.log('Something went wrong; Perms?', e)
    });

startupManager.remove('My_Awesome_App')
    .then(function() {
        console.log('App removed from startup')
    })
    .catch(function(e) {
        Console.log('Something went wrong; Perms?', e)
    });

startupManager.check('My_Awesome_App')
    .then(function(status) {
        console.log('App statup status:', status) // status returned as a boolen
    });

Support

If you're having any problem, please raise an issue on GitHub and I'll be happy to help.

Contribute

License

The project is licensed under the GPL-3.0 license.

Keywords

FAQs

Last updated on 18 Dec 2015

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