sync-safari-reading-list
v2.0.1
Published
Sync Safari Reading List to Pinboard bookmarking service.
Downloads
9
Maintainers
Readme
sync-safari-reading-list
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
- sync-safari-reading-list-cli - CLI for this module
License
MIT © Ivan Nikolić