1.0.0 • Published 4 years ago
url-filea v1.0.0
URL Filea
Create and read Windows Internet Shortcut files.
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.