@developer.nijat/js-helpers
v1.0.17
Published
Useful JavaScript Methods by Nijat Aliyev. @developer.nijat
Downloads
7
Maintainers
Readme
Useful JavaScript Methods by Nijat Aliyev (@developer.nijat)
How to install
npm install "@developer.nijat/js-helpers"
or
yarn add "@developer.nijat/js-helpers"
How to use
import React from "react";
import { generateRandomColor } from "@developer.nijat/js-helpers";
export default function App() {
function test() {
const randomColor = generateRandomColor();
console.log(randomColor);
}
return <>Demo Content</>;
}
Zero Dependencies
Useful Method List
COMMON
getFileSize
htmlDecode
htmlEncode
getRandomNumber
uniqueNumberFromString
normalizeGraphFilterForExpress
normalizeAzPhoneNumber
normalizeAz9DigitNumber
extractNumberFromTime
calculatePercentageOfNumber
generateRandomColor
normalizeSearchParams
sumAllBetweenTwoIntegers
capitalizeFirstLetter
convertFileToUint8Array
getUniqueListByKey
toFixedWithoutRounding
getFileMimeTypeByExt
removeObjectPropertiesWithValue
toSnakeCase
DATE
convertMillisToMinutesAndSeconds
calculateDurationWithStartDate
convertDateToMilliSeconds
convertTime12to24
convertSecondsToTime
getWeekOfMonth
getStartDateOfWeek
getEndDateOfWeek
VALIDATION
validateEmail
validateNumber
isJsonString