UNPKG

imagic-sdk

Version:

Official Node.js SDK for Imagic image optimization API

75 lines (74 loc) 1.88 kB
{ "name": "imagic-sdk", "version": "1.0.0", "description": "Official Node.js SDK for Imagic image optimization API", "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "imagic": "./bin/cli.js" }, "files": [ "dist", "bin", "examples", "README.md", "QUICKSTART.md" ], "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "scripts": { "build": "tsc", "dev": "tsc --watch", "test": "jest", "test:watch": "jest --watch", "test:unit": "jest --testNamePattern=\"^(?!.*Integration).*\"", "test:integration": "jest --testNamePattern=\"Integration\"", "prepublishOnly": "npm run build && npm run test:unit", "postpublish": "echo \"✅ Successfully published imagic-sdk v$(node -p \"require('./package.json').version\")\"", "clean": "rm -rf dist", "example:basic": "node examples/basic-upload.js", "example:batch": "node examples/batch-upload.js", "example:typescript": "npx ts-node examples/typescript-example.ts", "cli": "node bin/cli.js" }, "keywords": [ "imagic", "image", "optimization", "upload", "api", "sdk", "r2", "cloudflare", "node", "typescript" ], "author": "Imagic Team", "license": "MIT", "engines": { "node": ">=14.0.0" }, "devDependencies": { "@types/jest": "^29.0.0", "@types/node": "^20.19.8", "@types/node-fetch": "^2.6.12", "jest": "^29.0.0", "ts-node": "^10.9.0", "typescript": "^5.0.0" }, "dependencies": { "form-data": "^4.0.3", "node-fetch": "^2.6.7" }, "repository": { "type": "git", "url": "https://github.com/kirank55/imagic.git", "directory": "packages/sdk" }, "bugs": { "url": "https://github.com/kirank55/imagic/issues" }, "homepage": "https://github.com/kirank55/imagic#readme" }