Skip to content

ChristopherAndrewTopalian/CATopalian_JavaScript_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

CATopalian_JavaScript_Library

A pure functional JavaScript Library that includes many useful functions.



Date

Date
Index

getDateLong
April 17, 2025, Thursday

getDateLongArray
April 17, 2025, Thursday

getDaysBetweenDates
710 days

getDaysInFebruary
28 days

getMonthDayYear
4/17/2025

getYearMonthDay
2025/4/17

getDayOfWeek
Thursday

getDayOfMonth
22

getMonthName
May

getMonthNumber
8

getYear
2025

isLeapYear
true


Time

getTime24
16:19:14

getTime12
04:30:09 PM

getHours24
16

getMinutes
43

getSeconds
30

getTime12PST
04:54:27 AM


Date Time

getDateTime12
4/17/2025, 4:51:56 PM


Info

Info
Index

getURL
https://www .swpc.noaa.gov/communities/space-weather-enthusiasts-dashboard

getTitleOfPage
Space Weather Enthusiasts Dashboard

howManySpecifiedElements
195

howManyElements
2731


Math

Arithmetic

Arithmetic
Index

isPrime(n)
isPrime(5), returns, true

gcd(a, b)
greatest common denominator
gcd(5, 10), returns, 5

lcm(n)
least common multiple lcm(4, 8), returns, 8

factorial(n)
computes the factorial of a number
factorial(8), returns, 40320

isEven(n)
isEven(5), returns, false

isOdd(n)
isOdd(5), returns, true

lcd(n)
lcd(8, 10), returns, 40

sum(a, b)
sum(10, 7), returns, 17

product(a, b)
product(4, 4), returns, 16

power(a, b)
power(2, 3), returns, 8

Statistics

Statistics
Index

findMax
45

findMin
23

calculateRange
22

calculateSum
138

calculateMean

calculateMedian

calculateMode

calculateSingleMode


Random

randomIntMinMax

randomFloatMinMax


Text

Text
Index

randomMessage

getSelectedText

getSelectedTextMouseUp

getSelectedTextMouseUpRemovable

countWordOccurrences

getWordFrequencies

reverseText

countVowels

getInitials

countWords

countSentences

countConsonants

averageSentenceLength

getAverageWordLength

getVocabularySize

getVocabularyAndSize

logChars

removePunctuation

capitalizeWords

isPalindrome

convertToCamelCase

convertToSnakeCase

removeExtraSpaces

truncateText

swapCase

getLongestWord

getAllLongestWords

getShortestWord

getAllShortestWords

NLP (Natural Language Processing)

NLP

getMostCommonWord

getMostCommonWords

tokenizeWords

tokenizeSentences

removeStopWords

stemWords

lemmatizeWords


Video

Video
Index

videoPlay
Play

videoPause
Pause

videoBack
Back

videoForward
Forward

videoTimeGet
50.145

videoTimeRndGet

videoTimeToFixedGet

videoTimeSet

videoSpeedSet

videoSpeedGet

videoGetDuration

videoMuteSet

videoMuteGet

videoLoopSet

videoVolumeGet


Mouse

mousePosGet


Style

Style
Index

styleLinks

styleElementType

styleTextColor


Image

imgBrightnessContrastSet

imgGrayScaleSet

imgAllFiltersSet


Array

array
Index

isInArray

randomArrayElement

shuffleArray

arraySum

arrayProduct

arrayAverage

arrayMax

arrayMin

arrayReverse

arrayReverseManual

arraySort

arraySortAscending

arraySortDescending

arrayUnique


Geometry

Rectangle

rectangleArea

rectanglePerimeter


Circle

circleAreaFromRadius

radius


circleAreaFromCircumference

circumference


circleAreaFromDiameter

diameter


Filter

Array of Objects

Index


How to Download this App

  1. Click the green Code Button on this github page
  2. Choose Download ZIP
  3. Save the Zip File
  4. Extract All
  5. Double click the README.md file to open library in VSCode

https://github.com/ChristopherAndrewTopalian/CATopalian_JavaScript_Library


Happy Scripting :-)

//----//

// Dedicated to God the Father
// All Rights Reserved Christopher Andrew Topalian Copyright 2000-2025
// https://github.com/ChristopherTopalian
// https://github.com/ChristopherAndrewTopalian
// https://sites.google.com/view/CollegeOfScripting

About

A pure functional JavaScript Library that includes many useful functions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published