{"_id":"@best-skn/web-utils","_rev":"6-58d0216dbe64fcda2ca47519eb18a701","name":"@best-skn/web-utils","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"@best-skn/web-utils","version":"1.0.0","keywords":["web","utility","typescript","bun","webdev","http","html","language","response","status","code","method"],"author":{"url":"https://skn.best","name":"SKN Shukhan","email":"skn437physx@gmail.com"},"license":"MIT","_id":"@best-skn/web-utils@1.0.0","maintainers":[{"name":"skn437","email":"skn437physx@gmail.com"}],"homepage":"https://github.com/skn437/skn-web-utils#readme","bugs":{"url":"https://github.com/skn437/skn-web-utils/issues"},"dist":{"shasum":"d7d763c59ba19d761fafdbebaedd13b4e19b15c8","tarball":"https://registry.npmjs.org/@best-skn/web-utils/-/web-utils-1.0.0.tgz","fileCount":19,"integrity":"sha512-fnzjJBw0zCK/8mbfIdw3eJpvk2RqkQYwIdPGgrRkIYqeTpCFg6ExxVP3JAi5aFt6nYFEE4g9XnJRvhumlCL29Q==","signatures":[{"sig":"MEUCIQCdZZpwB6duXrmIG3HP5o37EIWTmSkqec/6cuvfDEHKTgIgeYcbgu4KUerfj2Zhe3ObZKzMiwzPzlmfY0vg0x8sylk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39227},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"e1011bf86ccdb55c7639d4b04951a697404bb9a1","scripts":{"build":"tsc"},"_npmUser":{"name":"skn437","email":"skn437physx@gmail.com"},"repository":{"url":"git+https://github.com/skn437/skn-web-utils.git","type":"git"},"_npmVersion":"10.9.2","description":"A simple library containing some web development utility objects","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.2.5","typescript":"^5.8.2"},"_npmOperationalInternal":{"tmp":"tmp/web-utils_1.0.0_1742543904235_0.5049355067403793","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@best-skn/web-utils","version":"1.0.1","keywords":["web","utility","typescript","bun","webdev","http","html","language","response","status","code","method"],"author":{"url":"https://skn.best","name":"SKN Shukhan","email":"skn437physx@gmail.com"},"license":"MIT","_id":"@best-skn/web-utils@1.0.1","maintainers":[{"name":"skn437","email":"skn437physx@gmail.com"}],"homepage":"https://github.com/skn437/skn-web-utils#readme","bugs":{"url":"https://github.com/skn437/skn-web-utils/issues"},"dist":{"shasum":"b96cfa65e21735a2f377947da8fc28e1990c5936","tarball":"https://registry.npmjs.org/@best-skn/web-utils/-/web-utils-1.0.1.tgz","fileCount":19,"integrity":"sha512-jDFsTBx8UxBxe8BK19hubNPl2J4jQhn8bld7vHDOQgaiovTqWVp71XrFgJK11pqIz1Am6mjda+mBeI0L7tjnag==","signatures":[{"sig":"MEQCIDqFNnfGF2M4Kk6IXA6/oa6FkuNQNB9lb9/0jqGdDDLEAiAKPq4pyApWJ1r8ddcZEWL9UsDDvOOXrtLy/nNHaTlnGA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":38971},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"4cd865487e469e1546f9f37c66f21514f8a9a4fa","scripts":{"build":"tsc"},"_npmUser":{"name":"skn437","email":"skn437physx@gmail.com"},"repository":{"url":"git+https://github.com/skn437/skn-web-utils.git","type":"git"},"_npmVersion":"10.9.3","description":"A simple library containing some web development utility objects","directories":{},"_nodeVersion":"22.20.0","_hasShrinkwrap":false,"devDependencies":{"@types/bun":"^1.2.5","typescript":"^5.8.2"},"_npmOperationalInternal":{"tmp":"tmp/web-utils_1.0.1_1761197399386_0.13196372535384682","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@best-skn/web-utils","version":"1.0.2","keywords":["web","utility","typescript","node","webdev","http","html","language","response","status","code","method"],"author":{"url":"https://skn.best","name":"SKN Shukhan","email":"skn437physx@gmail.com"},"license":"MIT","_id":"@best-skn/web-utils@1.0.2","maintainers":[{"name":"skn437","email":"skn437physx@gmail.com"}],"homepage":"https://github.com/skn437/skn-web-utils#readme","bugs":{"url":"https://github.com/skn437/skn-web-utils/issues"},"dist":{"shasum":"1db9678edcf4ff7d92044198accfa3f66557bdb1","tarball":"https://registry.npmjs.org/@best-skn/web-utils/-/web-utils-1.0.2.tgz","fileCount":19,"integrity":"sha512-1ev/HiGlBal5ct0kGsxTGJg/oBMwWKdYZu7S6jgoJqLh+PEnAEReRn0ahnOfPfK3x94/CpHHd3SYBQ5cn7LSXA==","signatures":[{"sig":"MEYCIQCWqvWDgisS0baUnV/1l2Il/vBZSrR+Dx+o5+KS2rpPlgIhAJWfUPETilkjxecvS4aNFPZ8YXotSf3vrd9EB8iQ4I7P","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":39016},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ca5ba0c7daf3a2400860b1c7af6cfcc4389ff521","scripts":{"build":"tsc"},"_npmUser":{"name":"skn437","email":"skn437physx@gmail.com"},"repository":{"url":"git+https://github.com/skn437/skn-web-utils.git","type":"git"},"_npmVersion":"10.9.7","description":"A simple library containing some web development utility objects","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.5.2"},"_npmOperationalInternal":{"tmp":"tmp/web-utils_1.0.2_1775713809914_0.39119802780836377","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@best-skn/web-utils","version":"1.1.0","keywords":["web","utility","typescript","node","webdev","http","html","language","response","status","code","method"],"author":{"url":"https://skn.best","name":"SKN Shukhan","email":"skn437physx@gmail.com"},"license":"MIT","_id":"@best-skn/web-utils@1.1.0","maintainers":[{"name":"skn437","email":"skn437physx@gmail.com"}],"homepage":"https://github.com/skn437/skn-web-utils#readme","bugs":{"url":"https://github.com/skn437/skn-web-utils/issues"},"dist":{"shasum":"aec7b69792b2f06b2c1187f5144bdd14620df665","tarball":"https://registry.npmjs.org/@best-skn/web-utils/-/web-utils-1.1.0.tgz","fileCount":19,"integrity":"sha512-jCuFwrY1DtBdF4AC3p4e1XvouqdFeI/sx398HnlmZqi5BIEMV7wH77OsYo1+2xTTKLYXhN9k2AnfclaXH3CH+A==","signatures":[{"sig":"MEYCIQCgNN2JJ2pgcymBdGnqll7eud1AOdpv92pm3k0i5zO46gIhAO9CMWFGBrrcK0wL18S4/Na6KgEg6B3Z0AQk/YjKVpSh","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":40844},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"530ac58b156027e2df3e259fff241eff4692ba7e","scripts":{"build":"tsc"},"_npmUser":{"name":"skn437","email":"skn437physx@gmail.com"},"repository":{"url":"git+https://github.com/skn437/skn-web-utils.git","type":"git"},"_npmVersion":"10.9.7","description":"A simple library containing some web development utility objects","directories":{},"_nodeVersion":"22.22.2","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/web-utils_1.1.0_1775884205154_0.4402718364140583","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@best-skn/web-utils","version":"1.2.0","keywords":["web","utility","typescript","node","webdev","http","html","language","response","status","code","method"],"author":{"url":"https://skn.best","name":"SKN Shukhan","email":"skn437physx@gmail.com"},"license":"MIT","_id":"@best-skn/web-utils@1.2.0","maintainers":[{"name":"skn437","email":"skn437physx@gmail.com"}],"homepage":"https://github.com/skn437/skn-web-utils#readme","bugs":{"url":"https://github.com/skn437/skn-web-utils/issues"},"dist":{"shasum":"02ab6b48e5a629e06f5210561e50318deb60d340","tarball":"https://registry.npmjs.org/@best-skn/web-utils/-/web-utils-1.2.0.tgz","fileCount":19,"integrity":"sha512-7cGL9rNoT281zf5NCEDC0oYY+DVPlgOODcUKZqzqp9TweWtvOXfc6cqqWFUwwDweFGoc1jYTzJ4iE9iVZ7Ieqw==","signatures":[{"sig":"MEUCIQDXYyM+ozkyWoedRUcQA9+ektEs1qkpc8GKPurxWMUU0QIgQYhAIuazMIA612oY6K50D5sj+iymicf85t8TpmRix9E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":41054},"main":"dist/index.js","type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"aadd398a16880377e80a516bd88538ec5c1ddbc1","scripts":{"build":"tsc"},"_npmUser":{"name":"skn437","email":"skn437physx@gmail.com"},"repository":{"url":"git+https://github.com/skn437/skn-web-utils.git","type":"git"},"_npmVersion":"10.9.8","description":"A simple library containing some web development utility objects","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.9.3","@types/node":"^25.6.0"},"_npmOperationalInternal":{"tmp":"tmp/web-utils_1.2.0_1786023801402_0.3210661115544118","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@best-skn/web-utils","description":"A simple library containing some web development utility objects","version":"1.2.1","main":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"type":"module","repository":{"type":"git","url":"git+https://github.com/skn437/skn-web-utils.git"},"keywords":["web","utility","typescript","node","webdev","http","html","language","response","status","code","method"],"author":{"name":"SKN Shukhan","email":"skn437physx@gmail.com","url":"https://skn.best"},"license":"MIT","scripts":{"build":"tsc"},"devDependencies":{"@types/node":"^25.6.0","typescript":"^5.9.3"},"_id":"@best-skn/web-utils@1.2.1","gitHead":"cfe7e7c8d903d0ab69807b99a5c0a463189fa470","bugs":{"url":"https://github.com/skn437/skn-web-utils/issues"},"homepage":"https://github.com/skn437/skn-web-utils#readme","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-CsZyBh1jk6tkbUQp9XwzLwT8D463SgkCtWfuH8shpiLJYf/7R96zJ8RPHEc2MuxYhziQplSr1WMKNrCts1KXGw==","shasum":"32acb78d27e4764d9227701a30552c750a4b7d1d","tarball":"https://registry.npmjs.org/@best-skn/web-utils/-/web-utils-1.2.1.tgz","fileCount":19,"unpackedSize":41310,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIB/cnqfhhu+4BCmH/gdpj6wRaAzdsOe380h97DTVudrhAiAWK4LuHHPYQ/eemZUgGbS8U6w1M/LhqyhUUSE8mPEkrw=="}]},"_npmUser":{"name":"skn437","email":"skn437physx@gmail.com"},"directories":{},"maintainers":[{"name":"skn437","email":"skn437physx@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/web-utils_1.2.1_1786082603470_0.7990657909168715"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-21T07:58:24.096Z","modified":"2026-08-07T06:03:23.753Z","1.0.0":"2025-03-21T07:58:24.474Z","1.0.1":"2025-10-23T05:29:59.592Z","1.0.2":"2026-04-09T05:50:10.114Z","1.1.0":"2026-04-11T05:10:05.286Z","1.2.0":"2026-08-06T13:43:21.593Z","1.2.1":"2026-08-07T06:03:23.608Z"},"bugs":{"url":"https://github.com/skn437/skn-web-utils/issues"},"author":{"name":"SKN Shukhan","email":"skn437physx@gmail.com","url":"https://skn.best"},"license":"MIT","homepage":"https://github.com/skn437/skn-web-utils#readme","keywords":["web","utility","typescript","node","webdev","http","html","language","response","status","code","method"],"repository":{"type":"git","url":"git+https://github.com/skn437/skn-web-utils.git"},"description":"A simple library containing some web development utility objects","maintainers":[{"name":"skn437","email":"skn437physx@gmail.com"}],"readme":"# SKN Web Utils\n\n<p align=\"center\">\n  <a href=\"https://www.w3schools.com/tags/ref_httpmessages.asp\" target=\"_blank\">\n  <img width=\"150px\" src=\"./public/web-magic.svg\" alt=\"Web Utils\" />\n  </a>\n</p>\n\n> TypeScript\n\n[![NPM Version](https://img.shields.io/npm/v/%40best-skn%2Fweb-utils)](https://www.npmjs.com/package/@best-skn/web-utils) [![MIT License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/license/mit)\n\n&nbsp;\n\n## **_Introduction:_**\n\n### A simple library consisting some web development utility objects\n\n### I mainly created this library so that I can use it in many web developing projects without duplicating codes\n\n&nbsp;\n\n## **_Features:_**\n\n- 💥 HTTP Method Containing Object Cursor Just Like Java Spring Boot\n- ✨ HTTP Response Status Code Containing Object\n- 📜 HTML `lang` Attribute Value Containing Object\n- 📑 HTTP Method Type Which Will Ensure Type Safety For Valid HTTP Methods\n- 📚 Information Regarding The Object Properties On Mouse Hover\n\n&nbsp;\n\n## **_Details:_**\n\n### **`httpMethod` Object**\n\n- It contains the available HTTP Method names as string\n- Java has similar Enum called `HttpMethod` in `org.springframework.http` package\n- Get all the available HTTP Methods without looking at elsewhere\n- Hover over the properties to get the information on the method\n- You need not go search on google to find out which method does what\n- For usage instruction, see `Usage` section\n\n### **`httpResponse` Object**\n\n- It contains the available HTTP Response Status Codes as number\n- Get all the available HTTP Response Status Codes without looking at elsewhere\n- Hover over the properties to get the information on the status codes\n- You need not go search on google to find out which staus code means what\n- For usage instruction, see `Usage` section\n\n### **`htmlLanguage` Object**\n\n- It contains the available values for languages of HTML `lang` attribute\n- Get all the available HTML `lang` attribute values without looking at elsewhere\n- You need not go search on google to find out the languages\n- For usage instruction, see `Usage` section\n\n### **`HttpMethod` Type**\n\n- It has all the valid values of HTTP methods\n- For usage instruction, see `Usage` section\n\n&nbsp;\n\n## **_Use Case:_**\n\n- Any JS, TS, Node Project\n\n&nbsp;\n\n## **_Requirements:_**\n\n### This library can be used in any JS/TS project as it has some objects only\n\n&nbsp;\n\n## **_Usage:_**\n\n### To install the package, type the following in console\n\n> ```zsh\n> npm add @best-skn/web-utils\n> #or\n> yarn add @best-skn/web-utils\n> #or\n> pnpm add @best-skn/web-utils\n> #or\n> bun add @best-skn/web-utils\n> ```\n\n### You can use the library as showing below (Just an example)\n\n#### For `httpMethod` Object\n\n> ```typescript\n> import { httpMethod } from \"@best-skn/web-utils\";\n>\n> export const allowedMethods = [httpMethod.GET, httpMethod.POST, httpMethod.DELETE];\n> ```\n\n#### For `httpResponse` Object\n\n> ```typescript\n> import { httpResponse } from \"@best-skn/web-utils\";\n>\n> export const allowedCodes = [httpResponse._200, httpResponse._404, httpResponse._403];\n> ```\n\n#### For `htmlLanguage` Object\n\n> ```typescript tsx\n> import { htmlLanguage } from \"@best-skn/web-utils\";\n>\n> const Home = () => (\n>   <html lang={htmlLanguage.ITALIAN}>\n>     {!-- Rest of the codes --}\n>   </html>\n> );\n>\n> export default Home;\n> ```\n\n#### For `HttpMethod` Type\n\n> ```typescript\n> import type { HttpMethod } from \"@best-skn/web-utils\";\n>\n> const someFunction = (arg: HttpMethod) => {\n>   // Some Logic Here\n> };\n>\n> // You'll get type safe valid HTTP Method suggestions here\n> someFunction(\"GET\");\n> ```\n\n&nbsp;\n\n## **_Dedicated To:_**\n\n- 👩‍🎨`Uma`: My former student. She is the reason I found strength again to fight the difficulties in life. Thank you for motivating me when I almost lost myself in despair. You yourself struggled a lot, saw highs and lows in your life, but despite all that, you didn't lose hope and inner strength. Thank you for sharing your life story to me and giving me inspiration. I'll be forever grateful to you. You are my pride and joy.\n- 💻`Piyal` & 👨‍⚖️`Shams`: My two high school buddies, who always remain there for me in my hard times. I'm fortunate and blessed enough to get friends like you two.\n- 💯`My Parents`: The greatest treasures of my life ever.\n- 👩`Trina`: The lady who resides deep inside my heart. I hope to find you again in next life. Next life, let's not get separated again. Next life, let's be together no matter what happens, ok?\n\n&nbsp;\n\n## **_License:_**\n\nCopyright (C) 2024 SKN Shukhan\n\nLicensed under the MIT License\n","readmeFilename":"README.md"}