@sirusdev/workerskv-uploader

0.0.2 • Public • Published

Workers KV Uploader

static site file uploader to cloudflare workers KV

Quick Start

  1. install as development dependency

    npm i @sirusdev/workerskv-uploader
  2. this tools support .env configuration file or you can setup environment manually

    CF_API_TOKEN="--cloudflare-api-token--"
    ACCOUNT_ID="--cloudlfare-account-id--"
    KV_NAMESPACE_ID="--workers-KV-namespace-id--"
    LOG_LEVEL="info" # debug, fatal, error, silent
    SITE_ASSETS_DIR="./dist" # where you put compiled front-ends
  3. add deploy script to your package.json file

    {
      "scripts": {
        "deploy": "workerskv-upload"
      }
    }
  4. run deployment script

    npm run deploy

/@sirusdev/workerskv-uploader/

    Package Sidebar

    Install

    npm i @sirusdev/workerskv-uploader

    Weekly Downloads

    2

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    8.57 kB

    Total Files

    5

    Last publish

    Collaborators

    • hasan-sirus
    • rahmat.sirus
    • rizkirachyan