UNPKG

urllib

Version:

Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more. Base undici fetch API.

95 lines (94 loc) 2.69 kB
{ "name": "urllib", "version": "3.3.0", "publishConfig": { "tag": "latest" }, "description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more. Base undici fetch API.", "keywords": [ "urllib", "http", "urlopen", "curl", "wget", "request", "https", "undici", "fetch" ], "author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)", "homepage": "https://github.com/node-modules/urllib", "type": "module", "exports": { ".": { "import": { "types": "./src/esm/index.d.ts", "default": "./src/esm/index.js" }, "require": { "types": "./src/cjs/index.d.ts", "default": "./src/cjs/index.js" } } }, "types": "./src/esm/index.d.ts", "main": "./src/cjs/index.js", "files": [ "src" ], "repository": { "type": "git", "url": "git://github.com/node-modules/urllib.git" }, "scripts": { "lint": "eslint src --ext .ts", "build": "npm run build:dist", "build:cjs": "tsc -p ./tsconfig.build.cjs.json", "build:esm": "tsc -p ./tsconfig.build.esm.json && node ./scripts/esm_import_fix.js", "build:dist": "tsc --version && npm run build:cjs && npm run build:esm", "build:cjs:test": "cd test/cjs && rm -rf node_modules && npm link ../.. && node index.js", "build:esm:test": "cd test/esm && rm -rf node_modules && npm link ../.. && node index.js", "build:test": "npm run build && npm run build:cjs:test && npm run build:esm:test", "test": "vitest run", "cov": "vitest run --coverage --no-threads", "ci": "npm run lint && npm run cov && npm run build:test", "contributor": "git-contributor", "prepack": "npm run build && rm -rf src/*.tsbuildinfo" }, "dependencies": { "default-user-agent": "^1.0.0", "digest-header": "^0.0.1", "form-data-encoder": "^1.7.2", "formdata-node": "^4.3.3", "mime-types": "^2.1.35", "pump": "^3.0.0", "tslib": "^2.4.0", "undici": "^5.6.0" }, "devDependencies": { "@types/busboy": "^1.5.0", "@types/default-user-agent": "^1.0.0", "@types/mime-types": "^2.1.1", "@types/pump": "^1.1.1", "@types/selfsigned": "^2.0.1", "@vitest/coverage-c8": "^0.23.4", "busboy": "^1.6.0", "coffee": "5", "egg-ci": "2", "eslint": "^8.17.0", "eslint-config-egg": "^12.0.0", "git-contributor": "1", "iconv-lite": "^0.6.3", "proxy": "^1.0.2", "selfsigned": "^2.0.1", "typescript": "^4.8.3", "vitest": "^0.23.4" }, "engines": { "node": ">= 14.17.0" }, "ci": { "version": "14, 16, 18" }, "license": "MIT" }