UNPKG

ky

Version:

Tiny and elegant HTTP client based on the Fetch API

100 lines (99 loc) 2.28 kB
{ "name": "ky", "version": "2.0.2", "description": "Tiny and elegant HTTP client based on the Fetch API", "license": "MIT", "repository": "sindresorhus/ky", "funding": "https://github.com/sindresorhus/ky?sponsor=1", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "https://sindresorhus.com" }, "type": "module", "exports": { "types": "./distribution/index.d.ts", "default": "./distribution/index.js" }, "main": "./distribution/index.js", "types": "./distribution/index.d.ts", "sideEffects": false, "engines": { "node": ">=22" }, "scripts": { "test": "xo && npm run build && ava", "debug": "PWDEBUG=1 ava --timeout=2m", "release": "np", "build": "del-cli distribution && tsc --project tsconfig.dist.json", "prepare": "npm run build" }, "files": [ "distribution" ], "keywords": [ "fetch", "request", "requests", "http", "https", "fetching", "get", "url", "curl", "wget", "net", "network", "ajax", "api", "rest", "xhr", "browser", "got", "axios", "node-fetch" ], "devDependencies": { "@sindresorhus/tsconfig": "^8.1.0", "@type-challenges/utils": "^0.1.1", "@types/busboy": "^1.5.4", "@types/express": "^5.0.6", "@types/node": "^25.3.0", "ava": "^6.4.1", "busboy": "^1.6.0", "del-cli": "^7.0.0", "expect-type": "^1.3.0", "express": "^5.2.1", "jest-leak-detector": "^30.2.0", "playwright": "^1.58.2", "tsx": "^4.21.0", "typescript": "^5.9.3", "xo": "^1.2.3" }, "xo": { "rules": { "unicorn/filename-case": "off", "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-return": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/naming-convention": "off", "@typescript-eslint/no-unnecessary-type-assertion": "off", "@typescript-eslint/parameter-properties": "off", "promise/prefer-await-to-then": "off", "unicorn/no-invalid-fetch-options": "off", "n/prefer-global/buffer": "off", "@stylistic/function-paren-newline": "off" } }, "ava": { "extensions": { "ts": "module" }, "nodeArguments": [ "--import=tsx/esm" ], "workerThreads": false } }