tkothe / read-safari-reading-list

Read and parse Safari Reading List.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

read-safari-reading-list

Build Status

Read and parse Safari Reading List.

Install

npm install read-safari-reading-list --save

Usage

var readList = require('read-safari-reading-list');

readList('./Bookmarks.plist')
	.then(function ( json ) {
		console.log(json);
		/* [
			{
				"title": "https://www.npmjs.com/package/axe-core",
				"description": "Accessibility engine for automated Web UI testing",
				"url": "https://www.npmjs.com/package/axe-core",
				"dateAdded": "2016-07-31T09:11:41.000Z"
			},
			{
				"title": "“Array” Methods",
				"description": "_.chunk(array, [size=1]) # Ⓢ Ⓝ Creates an array of elements ...",
				"url": "https://lodash.com/docs",
				"dateAdded": "2016-07-31T12:36:22.000Z"
			},
			...
		] */
	});

API

readList(filePath)

Returns: Promise

Reads and parses Safari Reading List binary property list (or any property list containing Reading List items).

filePath

Type: String
Default: ~/Library/Safari/Bookmarks.plist

Path to property list.

License

MIT © Ivan Nikolić

About

Read and parse Safari Reading List.

License:MIT License


Languages

Language:JavaScript 100.0%