node-startup-manager
Manage, Add & Remove Startup tasks on windows, mac & linux
Last updated 5 years ago by luigiplr .
GPL-3.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-startup-manager 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 0.1.3                                ...           latest (5 years ago)

13 Versions

  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.9                                ...           5 years ago
  • 0.0.8                                ...           5 years ago
  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.4                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |