@neoncitylights/typed-http
Version:
Provides strongly typed HTTP header names. Supports the Fetch API, XmlHttpRequest, and the Node.js HTTP module with zero-runtime overhead.
76 lines (75 loc) • 2.12 kB
JSON
{
"name": "@neoncitylights/typed-http",
"version": "0.2.0",
"description": "Provides strongly typed HTTP header names. Supports the Fetch API, XmlHttpRequest, and the Node.js HTTP module with zero-runtime overhead.",
"license": "MIT",
"author": {
"name": "Samantha",
"url": "https://github.com/neoncitylights"
},
"keywords": [
"typescript",
"types",
"http",
"fetch",
"xhr",
"xmlHttpRequest",
"node"
],
"bugs": "https://github.com/neoncitylights/typed-http/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/neoncitylights/typed-http.git"
},
"funding": {
"type": "individual",
"url": "https://github.com/sponsors/neoncitylights"
},
"main": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"src/index.ts",
"src/httpHeaders.ts",
"src/httpMethods.ts",
"src/httpStatusCodes.ts",
"src/*.d.ts"
],
"directories": {
"test": "tests"
},
"scripts": {
"generateHttpTypes": "ts-node ./build/generateHttpTypes.ts",
"build": "npm run generateHttpTypes",
"build:typedoc": "npx typedoc",
"build:typedoc-watch": "npm run build:typedoc -- --watch",
"build:watch": "watch 'npm run build' ./build",
"build:all": "npm run build && npm run build:typedoc",
"clean": "rm -rf ./dist/ ./docs/typedocs/",
"deploy": "gh-pages -d ./docs/typedocs",
"test": "vitest --coverage",
"test:ci": "npm run test -- run",
"test:ui": "npm run test -- --ui",
"test:all": "npm run test:ci && npm run lint",
"lint": "eslint src build --ext .ts,.tsx",
"lint:fix": "npm run lint -- --fix",
"prepare": "npm run build",
"prepublishOnly": "npm run test:all",
"preversion": "npm run lint",
"version": "npm run lint && git add -A src",
"postversion": "git push && git push --tags"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "5.44.0",
"@typescript-eslint/parser": "5.44.0",
"@vitest/coverage-c8": "^0.25.3",
"@vitest/ui": "^0.25.3",
"eslint": "8.28.0",
"gh-pages": "4.0.0",
"ts-node": "^10.9.1",
"typedoc": "0.23.21",
"typescript": "4.9.3",
"vitest": "^0.25.3",
"watch": "^1.0.2",
"word-wrap": "^1.2.3"
}
}