r/greyscript • UX Designer • Jun 26 '25

Library GreyScript Prime : Extended API Library

Just changed the structure of GreyScript Prime. Hopefully this will make it easier to use only what you need. Added a few more things. Quick overview below. It's no where near finished, feel free to use, don't reports bugs (yet) or documentation errors. Happy Coding!

https://github.com/Svarii/greyscript-prime

String Methods

  • .color("#color"): Apply a color to text.

  • .align: Align the text

  • .alpha: Set the alpha value of the text

  • .cspace: Set the character spacing of the text

  • .bold: Make the text bold.

  • .lowercase: Make the text lowercase.

  • .uppercase: Make the text uppercase.

  • .italic: Make the text italic.

  • .indent: Add indent.

  • .line-indent: Add line-indent.

  • .margin: Add margin.

  • .mspace: Add mspace.

  • .nobr: add nobr tag.

  • .noparse: add noparse tag.

  • .pos: add pos tag.

  • .rotate: Rotate characters.

  • .underline: Underline the text.

  • .strike: Apply strikethrough to text.

  • .mark: Highlight the text.

  • .sub: Apply subscript to text.

  • .sup: Apply superscript to text.

  • .voffset: Add voffset tag.

  • .width: Add width tag.

  • .remove_char_last: Remove the last character from text.

  • .remove_char_first: Remove the first character from text.

  • .remove_bold: Remove bold formatting from text.

  • .remove_italic: Remove italic formatting from text.

  • .remove_underline: Remove underline formatting.

  • .remove_strike: Remove strikethrough formatting.

  • .remove_mark: Remove highlight from text.

  • .remove_sub: Remove subscript from text.

  • .remove_sup: Remove superscript from text.

  • .extract_between: Extract the text between the given values.

  • .format: Allows for string interpolation.

Number Methods

  • .clamp(min, max): clamps a number in range.

  • .lerp(min, max): computes linear interpolation

  • .plus(number): Add 1 or value to a number.

  • .minus(number): Subtract 1 or a value from a number.

  • .diff(number): Calculate the absolute difference.

  • .greater_than(number): Check if number is greater.

  • .lesser_than(number): Check if number is lesser.

  • .random_from(number): Generate a random number from 0 (or number) to number.

  • .multiply(number): Calculate the multiple.

  • .div(number): divide by number.

  • .is_integer(number): check if is round integer

  • .is_float(number): check if is float

  • .is_negative(number): check if number is negative

  • .is_positive(number): check if number is positive

  • .is_zero(number): check if number is zero

List Methods

  • .crop: Removes empty list items from list ends.

  • .string: Loops through a list and prints each item.

Function Methods

  • load_lib(libName, libDir, typeExpected): Load a library from /lib.

  • force_params(usage, numReqParams): Force parameter usage and add help

  • program_name(): Gets name of program {self}

  • is_null(): Checks if object is null; if null, print / return / exit options

  • is_type(): Checks Types and specifies on-fail action

  • network_device_list(): Returns Network devices in a list

  • calc_ack(): Calculates the recommended amount of ACKs to collect

  • bool_text(): Return string true or false representing boolean

  • extract_ip()

  • file_append()

  • find_exploitable_addressess

  • get_inbox()

  • get_random_ip()

  • parse_inbox()

  • unsafe_check_list()

Constructs

  • fetch_explot_requirements:

  • fetch_whois:

  • file_locaiton_ident:

  • id_self:

License

GreyScript Prime is released under the MIT License. See LICENSE for more details.

2 Upvotes

0 comments sorted by