abacus-user-preferences-client
v1.0.1
Published
## Installation `npm i abacus-user-preferences-client`
Downloads
2
Readme
abacus-user-preferences-client
Installation
npm i abacus-user-preferences-client
Examples
const UserPrefsClient = require('abacus-user-preferences-client')
const client = UserPrefsClient.createClient('ignite', {
user : {
"username": "jwomack",
"email": "[email protected]"
}
})
client.update(
// global preferences
{ color : 'black', foo : 'foo' },
// app-specific preferences
{ color : 'yellow' })
.then(console.log)
client.updateGlobal(
{ color : 'black', foo : 'foo' }
.then(console.log)
client.updateApp(
{ color : 'yellow' }
.then(console.log)
// Preferences for app merged on top of global preferences
client.show()
.then(console.log)