1.1.0 • Published 7 years ago
website-shortcut v1.1.0
Website Shortcut
Website Shortcut generates the shortcut file that linked to a specific URL. The shortcut will be generated base on the Operation System the package is running on.
Three major Operating Systems are supported: Windows, MacOS and Linux.
Linux is picked by default if the package cannot detect the current OS. Linux's generated shortcut is the standard Desktop Entry that can be used on Gnome, KDE, Xfce and LXDE environments. Other environments are not supported for now.
Installation
npm install website-shortcut --save
Usage
var webShort = require('website-shortcut');
var path = 'abc/xyz';
var callback = function() {
console.log('success');
};
var error = function(err) {
console.log(err);
};
webShort(path, 'Google', 'https://www.google.com', callback, error);