{
  "name": "@bicycle-codes/image",
  "description": "An image component",
  "version": "0.0.17",
  "type": "module",
  "main": "dist/index.ts",
  "bin": {
    "image.stringify": "./bin/to-string.js",
    "image.resize": "./bin/resize.js"
  },
  "scripts": {
    "start": "npm run build && ./bin/resize.js ./example/100.jpg -o ./example && cd example && rm -rf ./node_modules && npm i && npm start",
    "build-example": "npm run build && ./bin/resize.js ./example/100.jpg -o ./example && cd example && rm -rf ./node_modules && npm i && VITE_DEBUG_MODE=staging vite build --mode staging --base=\"/image\" && mkdir -p ./public && cp ./100* ./public",
    "lint": "eslint \"./**/*.{ts,js}\"",
    "test": "npm run lint && node test/cli.js | tap-spec && npm run test-html",
    "test-html": "npm run lint && node test/index.js | tap-spec",
    "build-cjs": "esbuild src/**/*.ts --tsconfig=tsconfig.build.json --format=cjs --keep-names --outdir=./dist --out-extension:.js=.cjs",
    "build-bin": "mkdir -p ./dist/bin && rm -rf ./dist/bin/* && cp ./bin/to-string.js ./bin/resize.js ./dist/bin",
    "build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && tsc --project tsconfig.build.json && npm run cp-css && npm run build-tonic && npm run build-bin",
    "build-tonic": "cp ./src/cloudinary/tonic.js ./dist/cloudinary && cp ./src/tonic.js ./dist",
    "cp-css": "cp ./src/*.css ./dist",
    "toc": "markdown-toc --maxdepth 3 -i README.md",
    "preversion": "npm run lint",
    "version": "npm run toc && auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md README.md",
    "postversion": "git push && git push --tags && npm publish",
    "prepublishOnly": "npm run build"
  },
  "directories": {
    "doc": "docs",
    "example": "example",
    "test": "test"
  },
  "dependencies": {
    "@bicycle-codes/tonic": "^16.0.2",
    "@cloudinary/url-gen": "^1.14.0",
    "file-type": "^19.0.0",
    "preact": "^10.19.3",
    "sharp": "^0.33.3",
    "yargs": "^17.7.2"
  },
  "devDependencies": {
    "@bicycle-codes/tapzero": "^0.10.0",
    "@types/yargs": "^17.0.24",
    "@typescript-eslint/eslint-plugin": "^8.0.0",
    "@typescript-eslint/parser": "^8.0.0",
    "auto-changelog": "^2.4.0",
    "esbuild": "^0.24.0",
    "eslint": "^8.57.0",
    "eslint-config-standard": "^17.1.0",
    "htm": "^3.1.1",
    "markdown-toc": "^1.2.0",
    "postcss-import": "^16.1.0",
    "postcss-nesting": "^13.0.0",
    "tap-spec": "^5.0.0",
    "tape-run": "^11.0.0",
    "typescript": "^5.4.4",
    "vite": "^5.2.10"
  },
  "exports": {
    ".": {
      "import": "./dist/index.js",
      "require": "./dist/index.cjs"
    },
    "./*": {
      "import": [
        "./dist/*.js",
        "./dist/*"
      ],
      "require": [
        "./dist/*.cjs"
      ]
    },
    "./bin/*": {
      "import": "./dist/bin/*.js",
      "require": "./dist/bin/*.cjs"
    },
    "./cloudinary": {
      "import": "./dist/cloudinary/index.js",
      "require": "./dist/cloudinary/index.cjs"
    },
    "./cloudinary/*": {
      "import": "./dist/cloudinary/*.js",
      "require": "./dist/cloudinary/*.cjs"
    }
  },
  "keywords": [
    "image",
    "base64",
    "cloudinary",
    "picture",
    "tonic",
    "preact"
  ],
  "author": "nichoth <nichoth@nichoth.com> (https://nichoth.com)",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/bicycle-codes/image.git"
  },
  "bugs": {
    "url": "https://github.com/bicycle-codes/image/issues"
  },
  "homepage": "https://github.com/bicycle-codes/image#readme"
}
