npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

icloud-tabs

2.0.0 • Public • Published

icloud-tabs Build Status

Get the iCloud tabs for all synced devices (OS X)

Install

$ npm install --save icloud-tabs

Usage

const icloudTabs = require('icloud-tabs');
 
console.log(icloudTabs.sync());
/*
[
    {
        deviceId: '7A5E9C4F-BFFA-4B40-9B4F-C61CA4CWAD3F',
        deviceName: 'Sindre Sorhus’s iPhone',
        modified: Sun May 04 3014 18:19:48 GMT+0200 (CEST),
        tabs: [
            {
                title: 'TodoMVC',
                url: 'http://todomvc.com'
            },
            {
                title: 'Sindre Sorhus',
                url: 'http://sindresorhus.com'
            }
        ]
    }
]
*/

API

Tabs are fetched from ~/Library/SyncedPreferences/com.apple.Safari.plist, so it works fine offline.

icloudTabs()

Returns a promise for an array of devices.

icloudTabs.sync()

Returns an array of devices.

License

MIT © Sindre Sorhus

install

npm i icloud-tabs

Downloadsweekly downloads

7

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability