sync-safari-reading-list

2.0.1 • Public • Published

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ć

Package Sidebar

Install

npm i sync-safari-reading-list

Weekly Downloads

3

Version

2.0.1

License

MIT

Last publish

Collaborators

  • niksy