Socket
Book a DemoInstallSign in
Socket

shortcut-url

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shortcut-url

Get the URL from a web shortcut file

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

shortcut

FAQs

Package last updated on 14 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts