internet-shortcut

1.0.0 • Public • Published

internet-shortcut

Creates a .url-file compatible with Chrome, Safari and Explorer.

usage

const shortcut = require(`internet-shortcut`)
 
shortcut({ url: `example.com` })
.then(console.log)
.catch(console.log)
// /path/to/Example.url
// where "Example" is the title of example.com
 
shortcut({ url: `www.example.com`, title: `Custom title` })
.then(console.log)
.catch(console.log)
// /path/to/Custom title.url

api

shortcut(options)

  • options <Object>

Package Sidebar

Install

npm i internet-shortcut

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rogerbf