2.0.1 • Published 7 years ago

sync-safari-reading-list v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

sync-safari-reading-list

Build Status

Sync Safari Reading List to Pinboard bookmarking service.

Install

npm install sync-safari-reading-list --save

Usage

const syncList = require('sync-safari-reading-list');
const token = 'PINBOARD_API_TOKEN';

syncList({
	apiToken: token
})
	.then(( res ) => {
		console.log(res);
		/* [{
			url: 'http://example.com/katie',
			pinboardResponse: {
				result_code: 'done'
			}
		}, …] */
	});

API

syncList(filePath, opts)

Returns: Promise

Sync Safari Reading List to Pinboard. If file path to Safari Reading List is not provided, it uses default argument from read-safari-reading-list.

Syncing is done with Pinboard toread tag.

filePath

Type: String

Path to property list.

opts

Type: Object

apiToken

Type: String

Pinboard API token.

cleanUrls

Type: Boolean
Default: true

Perform redirects and cleans URLs from mobile subdomains and UTM query parameters.

clearList

Type: Boolean
Default: false

Should Safari Reading List be cleaned on successful syncing.

Related

License

MIT © Ivan Nikolić