npm install --save node-mac-icloud-keyvalue
node-mac-icloud-keyvalue
is a native Node.js module that allows you to read/write to NSUbiquitousKeyValueStore
. It functions similarly to UserDefaults
and other simple key/value stores. The advantage to using NSUbiquitousKeyValueStore
is that it automatically syncs via iCloud for the user account currently signed in to iCloud.
This means you can store things you want synced across all instances of your app, on the Mac and on iOS.
Used in production by Turnip Timer, our time-tracking app for freelancers. 🙂
This program is free software; it is distributed under an MIT License.
This library is based on code in Shelley Vohr’s node-mac-userdefaults
. Thanks Shelley! 🙏🏻
Copyright (c) 2022 Octopus Think (Contributors).