1.1.0 • Published 7 years ago

website-shortcut v1.1.0

Weekly downloads
5
License
WTFPL
Repository
github
Last release
7 years ago

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);
1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago