1.0.0 • Published 4 years ago

url-filea v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

URL Filea Travis CI Build Status

Create and read Windows Internet Shortcut files.

NPM Badge

Install

npm install url-filea

Usage

const urlFile = require("url-filea");

(async () => {
    await urlFile("google.url", { url: "https://google.com" })

    await urlFile("google.url")
    //=> { url: "https://google.com" }
})()

API

urlFilea(filename, options?)

filename

Type: string

The name of the file to read or write to.

options

Type: object

The data to write. If not specified, the data is read instead.