1.0.0 โข Published 1 year ago
@best-skn/web-utils v1.0.0
SKN Web Utils
TypeScript
ย
Introduction:
A simple library consisting some web development utility objects
I mainly created this library so that I can use it in many web developing projects without duplicating codes
ย
Features:
- ๐ฅ HTTP Method Containing Object Cursor Just Like Java Spring Boot
- โจ HTTP Response Status Code Containing Object
- ๐ HTML
langattribute Value Containing Object - ๐ Information Regarding The Object Properties On Mouse Hover
ย
Details:
httpMethod Object
- It contains the available HTTP Method names as string
- Java has similar Enum called
HttpMethodinorg.springframework.httppackage - Get all the available HTTP Methods without looking at elsewhere
- Hover over the properties to get the information on the method
- You need not go search on google to find out which method does what
- For usage instruction, see
Usagesection
httpResponse Object
- It contains the available HTTP Response Status Codes as number
- Get all the available HTTP Response Status Codes without looking at elsewhere
- Hover over the properties to get the information on the status codes
- You need not go search on google to find out which staus code means what
- For usage instruction, see
Usagesection
htmlLanguage Object
- It contains the available values for languages of HTML
langattribute - Get all the available HTML
langattribute values without looking at elsewhere - You need not go search on google to find out the languages
- For usage instruction, see
Usagesection
ย
Use Case:
- Any JS Project
ย
Requirements:
This library can be used in any JS project as it has some objects only
ย
Usage:
To install the package, type the following in console
npm add @best-skn/web-utils #or yarn add @best-skn/web-utils #or pnpm add @best-skn/web-utils #or bun add @best-skn/web-utils
You can use the library as showing below (Just an example)
For httpMethod Object
import { httpMethod } from "@best-skn/web-utils"; export const allowedMethods = [httpMethod.GET, httpMethod.POST, httpMethod.DELETE];
For httpResponse Object
import { httpResponse } from "@best-skn/web-utils"; export const allowedCodes = [httpResponse._200, httpResponse._404, httpResponse._403];
For htmlLanguage Object
import { htmlLanguage } from "@best-skn/web-utils"; const Home = () => ( <html lang={htmlLanguage.ITALIAN}> {!-- Rest of the codes --} </html> ); export default Home;
ย
Dedicated To:
- ๐ฉโโ๏ธ
Tanjila Hasan Trina: The long lost love of my life. The course of nature separated us from our paths and put us in separate places far away from each other. But no matter how separated we are right now, each and every moment of mine is only dedicated to you. We may not see each other in this lifetime as it seems but I will find you again in the next life. I just want to say:ไธ็ใฏๆฎ้ ทใ ใใใงใๅใๆใใ - ๐ฏ
My Parents: The greatest treasures of my life ever.
ย
License:
Copyright (C) 2024 SKN Shukhan
Licensed under the MIT License
1.0.0
1 year ago