shortcut-url

4.0.0 • Public • Published

shortcut-url

Get the URL from a web shortcut file

Install

$ npm install shortcut-url

Usage

import shortcutUrl from 'shortcut-url';

console.log(await shortcutUrl('google'));
//=> 'https://google.com'

In the above example it will look for the following file:

  • macOS: google.webloc
  • Linux: google.desktop
  • Windows: google.url

API

shortcutUrl(filePath)

Returns Promise<string> with the URL.

filePath

Type: string

The file path to the web shortcut.

Leave out the extension for cross-platform compatibility.

Related

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    5
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    5
  • 3.0.0
    0
  • 2.0.0
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i shortcut-url

Weekly Downloads

6

Version

4.0.0

License

MIT

Unpacked Size

3.96 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus