@axel669/json-cabinet

0.1.1 • Public • Published

JSON Cabinet

Simple JSON storage service with what I hope is a good free tier.

Usage

import cabinet from "@axel669/json-cabinet"

const files = cabinet({
    clientID: "****",
    apiKey: "****"
})

await files.write(name, value)

await files.read(name)

Value can be any JSON stringifyable value. Values that are removed in during stringify will not be saved. Stringified value cannot exceed 10KB in size or the service will reject the write request.

API keys with different prefixes will never write to each others files and can be treated as separate cabinets.

Readme

Keywords

none

Package Sidebar

Install

npm i @axel669/json-cabinet

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

2.06 kB

Total Files

4

Last publish

Collaborators

  • axel669