Skip to content

Store data in NSUbiquitousKeyValueStore from Node. Useful in Electron apps to share data between devices over iCloud. Similar to UserDefaults, but synced across iCloud.

License

Notifications You must be signed in to change notification settings

octopusthink/node-mac-icloud-keyvalue

Repository files navigation

MIT license

nsUbiquitousKeyValueStore

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. 🙂

License

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).

About

Store data in NSUbiquitousKeyValueStore from Node. Useful in Electron apps to share data between devices over iCloud. Similar to UserDefaults, but synced across iCloud.

Resources

License

Stars

Watchers

Forks

Packages

No packages published