0.1.0 • Published 1 year ago

kartei-sdk v0.1.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

kartei.io-sdk

Kartei.io is the registration-free key-value-store for fast developing and rapid prototyping.
All stored apps:

  • will be deleted after 5 days
  • can have up to 1000 keys
  • hold 20MB data at all

Example

  try {
    const token = 'my-selfchoosen-appid---maybe-uuid4---but-minlength-30'
    const kartei = createKarteiApp(token)
    await kartei.set('onekey', 'onevalue')
    const value = await kartei.get('onekey')
    console.log("onekey", value)
  } catch (error: unknown) {
    if (TokenError.is(error)) {
      // TODO Handle TokenError thrown by createKarteiApp
    }

    if (NotFoundError.is(error)) {
      // TODO Handle NotFoundError thrown by get
    }

    if (KarteiError.is(error)) {
      // TODO Handle KarteiError thrown by set/get
    }

    // TODO Handle other Errors
  }
0.1.0-rc3

1 year ago

0.1.0-rc4

1 year ago

0.1.0-rc2

1 year ago

0.1.0-rc5

1 year ago

0.1.0-rc6

1 year ago

0.1.0

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago