{"_id":"@albi_scando/as-const-http-lib","name":"@albi_scando/as-const-http-lib","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@albi_scando/as-const-http-lib","version":"1.0.0","description":"A TypeScript library providing strongly typed HTTP-related constants.","type":"module","repository":{"type":"git","url":"git+https://github.com/albertoscandolara/as-const-http-lib.git"},"author":{"name":"Alberto Scandolara"},"license":"MIT","bugs":{"url":"https://github.com/albertoscandolara/as-const-http-lib/issues"},"homepage":"https://github.com/albertoscandolara/as-const-http-lib#readme","main":"./dist/as-const-http-lib.umd.js","module":"./dist/as-const-http-lib.es.js","typings":"./dist/types/main.d.ts","scripts":{"build":"tsc && vite build","commit":"cz","dev":"vite serve ./src/playground","docs:build":"typedoc","docs:serve":"npx http-server docs -o","formatter":"npm run prettier && npm run lint","formatter:fix":"npm run prettier:fix && npm run lint:fix","lint":"eslint .","lint:fix":"eslint . --fix","prepare":"husky","preview":"vite preview","prettier":"prettier . --check","prettier:fix":"prettier . --write","release":"semantic-release","release:dry":"semantic-release --dry-run"},"devDependencies":{"@commitlint/cli":"^20.4.1","@commitlint/config-conventional":"^20.4.1","@eslint/js":"^9.39.2","@semantic-release/changelog":"^6.0.3","@semantic-release/git":"^10.0.1","@semantic-release/github":"^12.0.3","@semantic-release/npm":"^13.1.3","@types/node":"^25.2.1","@types/numeric":"^1.2.6","@vitest/coverage-v8":"^4.0.18","branch-name-lint":"^3.0.1","commitizen":"^4.3.1","cz-conventional-changelog":"^3.3.0","eslint":"^9.39.2","eslint-config-prettier":"^10.1.8","eslint-plugin-import-x":"^4.16.1","eslint-plugin-prettier":"^5.5.5","eslint-plugin-regexp":"^3.0.0","eslint-plugin-security":"^3.0.1","globals":"^17.3.0","http-server":"^14.1.1","husky":"^9.1.7","lint-staged":"^16.2.7","prettier":"3.8.1","sass":"^1.97.3","semantic-release":"^25.0.3","typedoc":"^0.28.16","typescript":"^5.9.3","typescript-eslint":"^8.54.0","validate-branch-name":"^1.3.2","vite":"^7.3.1","vite-plugin-dts":"^4.5.4","vite-plugin-static-copy":"^3.2.0"},"packageManager":"pnpm@10.28.2","engines":{"node":">=22.11.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"lint-staged":{"*.ts":"prettier --write","*.{js,scss,css,md}":["prettier --write","eslint --fix"]},"gitHead":"c2e571a8fe7c225c30f97e85ed83d3497c02ac8f","_id":"@albi_scando/as-const-http-lib@1.0.0","_nodeVersion":"22.22.0","_npmVersion":"11.11.1","dist":{"integrity":"sha512-1jPT4Of6Tvn5t4oC5B2xNHfChXwP846rSmzrRc0OtInogNsqo5SfuCTwHZu/f/Lesp0CF9E7CqBYgTYIRyYVsg==","shasum":"148b6a303de7153acbc9da25f3f8cebf8d734819","tarball":"https://registry.npmjs.org/@albi_scando/as-const-http-lib/-/as-const-http-lib-1.0.0.tgz","fileCount":12,"unpackedSize":34852,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDOeaPNBY1YyomJQzppbQqDEx2UtvoYwVWPrXSPfiru6gIhANEVQRDGU7myUg8HAx+kYyomB8BSf6qKMBeSvpOCQUo6"}]},"_npmUser":{"name":"albi_scando","email":"alberto.scandolara92@gmail.com"},"directories":{},"maintainers":[{"name":"albi_scando","email":"alberto.scandolara92@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/as-const-http-lib_1.0.0_1773353378428_0.16024538601627247"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-12T22:09:38.427Z","1.0.0":"2026-03-12T22:09:38.568Z","modified":"2026-03-12T22:09:39.102Z"},"maintainers":[{"name":"albi_scando","email":"alberto.scandolara92@gmail.com"}],"description":"A TypeScript library providing strongly typed HTTP-related constants.","homepage":"https://github.com/albertoscandolara/as-const-http-lib#readme","repository":{"type":"git","url":"git+https://github.com/albertoscandolara/as-const-http-lib.git"},"author":{"name":"Alberto Scandolara"},"bugs":{"url":"https://github.com/albertoscandolara/as-const-http-lib/issues"},"license":"MIT","readme":"# `as-const-http-lib`\n\n## Description\n\nA **lightweight, strongly-typed TypeScript library** providing HTTP constants with full type safety. Leverage TypeScript's `as const` pattern to get **zero-runtime overhead**, **perfect IDE autocompletion**, and **compile-time type checking** for HTTP headers, request methods, and response status codes.\n\nNever worry about typos in HTTP headers, methods, or status codes again—catch errors at compile time instead.\n\n### What's Included\n\n- **HTTP Headers** — 80+ standardized headers with modern support (CSP, HSTS, Client Hints, etc.)\n- **HTTP Methods** — All 9 standard request methods with MDN documentation links\n- **Status Codes** — Complete 1xx–5xx response codes organized by category\n\n### Why Use This?\n\n✓ **Type-Safe** — `as const` pattern ensures literal types at compile time  \n✓ **Zero Runtime Overhead** — Constants are tree-shakeable and lightweight  \n✓ **Developer Experience** — Full IDE autocompletion and intellisense support  \n✓ **Standards Compliant** — Covers modern HTTP specifications  \n✓ **Simple & Focused** — No bloat—just the constants you need\n\n## Table of Contents\n\n- [License](documentation/pages/LICENSE.md)\n- [Installation](documentation/pages/INSTALLATION.md)\n- [Contributing](documentation/pages/CONTRIBUTING.md)\n- [Changelog](CHANGELOG.md)\n","readmeFilename":"README.md","_rev":"1-2599b27524e7c67bec94bbc3176a1250"}