npm

Join us for the upcoming webinar, "Enterprise JavaScript done right: the tools you love, the security you need."Sign up here »

@titicaca/firebase-remote-config-client

0.1.1 • Public • Published

Firebase Remote Config Client

Firebase Remote Config를 조회/갱신하는 클라이언트 라이브러리입니다.

Usage

$ npm install @titicaca/firebase-remote-config-client --save
import { fetchConfig, updateConfig } from '@titicaca/firebase-remote-config-client'
 
async function fetch() {
  const { body, etag, status } = await fetchConfig({
    accountManifest: {
      client_email: 'some@example.com',
      private_key: 'PRIVATE_KEY'
    }
  })
 
  console.log(body)
}
 
async function update() {
  const { body, etag, status } = await fetchConfig({
    accountManifest: {
      client_email: 'some@example.com',
      private_key: 'PRIVATE_KEY'
      key: 'foo',
      value: 'bar'
    }
  })
 
  console.log(body) /* Has "foo": { "defaultValue": "bar" } */
}

install

npm i @titicaca/firebase-remote-config-client

Downloadsweekly downloads

0

version

0.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability