UNPKG

setu.js

Version:

A lightweight HTTP client for Node.js and the browser, with smart adapter selection.

73 lines (72 loc) 1.71 kB
{ "name": "setu.js", "version": "1.4.5", "description": "A lightweight HTTP client for Node.js and the browser, with smart adapter selection.", "author": "Chaitanya Abhade", "license": "MIT", "type": "module", "main": "./dist/node/index.js", "types": "./dist/index.d.ts", "exports": { "import": { "node": "./dist/node/index.js", "default": "./dist/browser/index.js" }, "require": { "node": "./dist/node/index.js", "default": "./dist/browser/index.js" } }, "files": [ "dist", "native" ], "scripts": { "build": "npm run build:native && tsc && echo '\nBuild complete ✅'", "build:native": "node-gyp rebuild --directory native || echo 'Native build skipped (optional)'", "build:ts": "tsc", "dev": "tsc --watch", "test": "node ./dist/dev.js", "prepare": "husky", "benchmark": "npm run build && node benchmark/index.js", "benchmark:server": "node benchmark/test-server.js", "install": "node native/install.js || true" }, "keywords": [ "http", "fetch", "axios-alternative", "client", "api", "request", "lightweight", "typescript", "browser", "node", "setu", "react", "vue", "angular", "nextjs", "express", "framework-agnostic", "universal" ], "devDependencies": { "@types/node": "^20.0.0", "@types/node-fetch": "^2.6.13", "axios": "^1.13.2", "got": "^14.6.5", "husky": "^9.1.7", "node-fetch": "^3.3.2", "typescript": "^5.4.0", "undici": "^7.16.0" }, "optionalDependencies": { "node-addon-api": "^7.0.0", "node-gyp": "^10.0.0" }, "dependencies": { "form-data": "^4.0.3" } }