urlfile
Parse and create .url (bookmark) files
Usage
Given a URL file called daveeddy.com.url
[InternetShortcut]URL=http://www.daveeddy.com
Parse the URL file async
var urlfile = ;urlfile;
Parse the URL file sync
var urlfile = ;var url = urlfile;// url => 'http://www.daveeddy.com'
Parse a URL file string
var urlfile = ;var url = urlfile;// url => 'http://www.daveeddy.com
Create a URL file string
var urlfile = ;var s = urlfile;// s => '[InternetShortcut]\r\nURL=http://www.daveeddy.com'
Functions
- urlfile.parseURLFile(file, function(err, data))
- urlfile.parseURLFileSync(file)
- urlfile.parseString(string)
- urlfile.createURL(url)
The 3 synchronus functions will throw any errors they encounter
Installation
npm install urlfile
License
MIT License