functions+ Library
Version: 1.0.3
Name: functions+
Description: A simple library with prebuilt functions for readability and ease of use in JavaScript.
Features
-
Math Functions
Includes functions for basic arithmetic operations, random number generation, number theory, and more.
-
String Functions
Includes functions for manipulating and transforming strings, such as converting to uppercase, lowercase, and trimming.
-
Utility Functions
Offers various utilities, such as formatting dates, cloning objects, merging objects, and calculating time differences.
Functions
-
Versioning
-
Version
-
Maths Functions
-
Add
- Subtract
- Remainder
- Divide
- Multiply
- Power
- RandomInRange
- Random
- RandomFloat
- RandomBool
- Absolute
- Root
- Round
- Ceiling
- Floor
- Fixed
- Percent
- Factorial
- Min
- Max
- Gcd
- Lcm
- Fibonacci
- IsPrime
- Sas
- NumberToBinary
- Quadratic
- Over
- Under
- Equal
-
String Functions
- Join
- Uppercase
- Lowercase
- Trim
-
Utility Functions
- FormatDateDDMMYY
- FormatDateMMDDYY
- FormatDateYYMMDD
- RandomColor
- RandomColorRGB
- DeepClone
- MergeObjects
- ObjToQueryString
- DateDifference
- Sort
- Flatten
- Shuffle
- Median
- Mode
- ReverseString
- ToTitleCase
- TimeSince
- DayOfWeek
- AddDays
- Lerp
- DeepEqual
Installation
You can install the
functions+ library using npm:
``
bash
npm install functions-plus
`
Note
this library is rarely maintained but it does it's job well and it's also my first contribution to npm` hope you enjoy it and that your code looks cleaner than ever!