0.0.1 • Published 3 years ago

slickscript v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

./src/imgs/plain.png

Quick Install

// Cdnjs Coming Soon
// jsDelivr Coming Soon

Guide

If a value is null or not

isNull(string);

Generate a random number.

randNum(10, 100);

Generate a random string, can be used to make random ids.

randString(10, true); // string length, use int or not

Convert string/number to boolean, for integer, 0 will return false 1 wil return true.

Number.toBool();
String.toBool();

Convert hex to rgb code.

String.toRGB();

Format an integer with commas as number_format() in php.

Number.Format();

Convert rgb to hex.

String.toHex();

Encrypt a string with the provided salt.

String.Encrypt("StrongSalt");

Decrypt a string with the provided salt.

String.Decrypt("StrongSalt");

Get unique value(s) from array.

Array.toUnique();

Remove a certain value from an array.

Array.remove("James");

Encode html entities.

String.encodeEntities();

Decode html entities.

String.decodeEntities();

Get the highest integer value from an array

Array.highest();

Get the lowest integer value from an array

Array.lowest();

Checks whether string is email or not.

String.isEmail();

Gets the number of elements with the same class.

String.countElementsByClassName();