Narcissistic Project Managers
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

webloc-parser

0.1.1 • Public • Published

webloc-parser

Allows parsing of Apple XML and binary plist webloc files.

Examples

With filenames

const weblocParser = require('webloc-parser');
 
weblocParser.getUrlFromFile('/path/to/some.webloc').then(url => {
    console.log(url);
});

With data buffers

const weblocParser = require('webloc-parser');
const fs = require('fs');
 
fs.readFile('/path/to/some.webloc', function(err, data) {
    weblocParser.getUrl(data).then(url => {
        console.log(url);
    });
});

Keywords

install

npm i webloc-parser

Downloadsweekly downloads

7

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar