Skip to content

Latest commit

 

History

History
115 lines (77 loc) · 2.44 KB

README.md

File metadata and controls

115 lines (77 loc) · 2.44 KB

Fast-web-Kit

Fast-web-Kit is a lightweight and flexible collection of utility functions that simplifies common development tasks, allowing developers to write applications more quickly and efficiently. This package is suitable for both beginners and experienced developers alike, as it helps save time and reduce development costs.

Installation

You can install Fast-web-Kit via NPM

npm install fast-web-kit

Usage

To use Fast-web-Kit, you need to import the package and destructure the function that you want to use. For example, to use the array object:

import { array } from "fast-web-kit"
// or
const { array } = require("fast-web-kit")

// example
console.log(array.hasElements([1, 2, 3, 4, 5, 1]))

// returns true

Other Objects and Few Examples

Email

import { email } from "fast-web-kit"
// or
const { email } = require("fast-web-kit")

// example
console.log(email.getUsername("[email protected]"))

// returns hekima.dev

Number

import { number } from "fast-web-kit"
// or
const { number } = require("fast-web-kit")

// example
console.log(number.toWord(10522))

// returns "ten thousand five hundred and twenty two"

Object

import { object } from "fast-web-kit"
// or
const { object } = require("fast-web-kit")

// example
console.log(object.isEmpty({}))

// returns true

Password

import { password } from "fast-web-kit"
// or
const { password } = require("fast-web-kit")

// example
console.log(password.isStrongPassword("myPassword"))

// returns false

String

import { string } from "fast-web-kit"
// or
const { string } = require("fast-web-kit")

// example
console.log(string.removeSpecialCharacters("Hello, World!"))

// returns "Hello World"

Time

import { time } from "fast-web-kit"
// or
const { time } = require("fast-web-kit")

// example
console.log(time.relativeTime(new Date()))

// returns "just now"

Contributing

Fast-web-Kit is an open-source project, and we welcome contributions from anyone. If you have an idea for a new helper function or would like to improve an existing one, please feel free to submit a pull request.

In addition, there are more helper functions available in the package than the ones documented here. Please refer to the source code for a complete list of functions and their documentation.

We appreciate your contributions to make Fast-web-Kit a more comprehensive and useful tool for developers.