Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niksy/sync-safari-reading-list
Sync Safari Reading List to Pinboard bookmarking service.
https://github.com/niksy/sync-safari-reading-list
Last synced: 2 months ago
JSON representation
Sync Safari Reading List to Pinboard bookmarking service.
- Host: GitHub
- URL: https://github.com/niksy/sync-safari-reading-list
- Owner: niksy
- License: mit
- Created: 2016-08-20T20:38:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T10:26:23.000Z (almost 8 years ago)
- Last Synced: 2024-10-12T01:02:31.682Z (3 months ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sync-safari-reading-list
[![Build Status][ci-img]][ci]
Sync Safari Reading List to [Pinboard][pinboard] bookmarking service.
## Install
```sh
npm install sync-safari-reading-list --save
```## Usage
```js
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](https://github.com/niksy/read-safari-reading-list#readlistfilepath).
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][sync-safari-reading-list-cli] - CLI for this module
## License
MIT © [Ivan Nikolić](http://ivannikolic.com)
[ci]: https://travis-ci.org/niksy/sync-safari-reading-list
[ci-img]: https://img.shields.io/travis/niksy/sync-safari-reading-list.svg
[pinboard]: https://pinboard.in/
[sync-safari-reading-list-cli]: https://github.com/niksy/sync-safari-reading-list-cli