# win-lnk-parser

> A vbs solution based to parse lnk files (windows shortcuts) supporting special chars

Latest version **1.1.2** (published 2018-06-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install win-lnk-parser
pnpm add win-lnk-parser
yarn add win-lnk-parser
bun add win-lnk-parser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.2 |
| Published | 2018-06-12 |
| First published | 2018-06-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | José Varela |
| Maintainers | joselcvarela |
| Keywords | lnk, parser, windows, shortcut, link, shell, microsoft |

## Links

- npm: https://www.npmjs.com/package/win-lnk-parser
- Repository: https://github.com/joselcvarela/win-lnk-parser
- Homepage: https://github.com/joselcvarela/win-lnk-parser#readme
- Issues: https://github.com/joselcvarela/win-lnk-parser/issues
- npm.io page: https://npm.io/package/win-lnk-parser

## Dependencies (1)

- [iconv-lite](https://npm.io/package/iconv-lite.md) ^0.4.23

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.1.2 (latest) — 2018-06-12
- 1.1.1 — 2018-06-11
- 1.1.0 — 2018-06-11

## README

# win-lnk-parser
Simple package to read some metadata info from .lnk files (windows shortcuts) with support for special characters

## Pre-requisites
This package only works on Windows and you must have the following apps:
```
$ chcp /?
$ cscript /?
```

## Usage
```sh
$ npm i --save win-lnk-parser
```

``` js
const lnkParser = require('win-lnk-parser')
const fullPath = "c:\\...\\...\\example.lnk"
const go = async () => {
    const {
        targetPath
        windowStyle
        hotKey
        iconLocation
        description
        workingDirectory
    } = await lnkParser(fullPath, [codePage=850])
}
```
 - fullPath - absolute path to .lnk file
 - codePage - defaults to 850 (see [here](https://en.wikipedia.org/wiki/Code_page) for more information)

## Author
José Varela (joselcvarela//at//gmail.com)

---
_Source: https://npm.io/package/win-lnk-parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
