ashbeats / resolve-lnk

Resolves basic information from windows lnk files using pure js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resolve Lnk

Easily extract destinations from Windows shortcut files (*.lnk)

Benefits

  • Fast. Written in pure JS.
  • Tiny library! ( 3.85 KiB )
  • Does not depend on external tools, Wscript or COM calls.

What are Lnk files?

Shell Link (.LNK) Binary File Format, which contains information that can be used to access another data object. The Shell Link Binary File Format is the format of Windows files with the extension "LNK".

Shortcuts on Windows, are lnk files.

Install All Tests

$ yarn add @recent-cli/resolve-lnk

Usage

const Lnk = require("@recent-cli/resolve-lnk")

// # Supports Buffer | Uint8Array input
let output = Lnk.resolveBuffer(
    fs.readFileSync()
); 

// # Supports path names. Returns a Promise
(async () => await Lnk.resolve("example.lnk"))();

Todo

  • Add support for the browser

About

Resolves basic information from windows lnk files using pure js


Languages

Language:JavaScript 100.0%