abacus-user-preferences-client

1.0.1 • Public • Published

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": "jwomack@netflix.com" 
  } 
})

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)

Readme

Keywords

none

Package Sidebar

Install

npm i abacus-user-preferences-client

Weekly Downloads

1

Version

1.0.1

License

ISC

Last publish

Collaborators

  • jameswomack