Introduce to strlua module!

:slightly_smiling_face: Introduction :slightly_smiling_face:

Hello Developers.

Today my friend @gamer14_123 have made a module and we decided to open source it for developers. The module will provides developers a set of string manipulation functions, similar to the str module in Python. Which allows you to perform various operations on strings, such as trimming, padding, truncating, searching, replacing, splitting, and formatting.

Full credits goes to: @gamer14_123

:face_with_monocle: What does this module do? :face_with_monocle:

StrLua is a Lua module that provides a set of string manipulation functions, similar to the str module in Python. It allows you to perform various operations on strings, such as trimming, padding, truncating, searching, replacing, splitting, and formatting.

:face_with_monocle: Why should you use it? :face_with_monocle:

People should use StrLua because it provides a convenient and efficient way to work with strings in Lua, similar to how the str module works in Python. By using StrLua, developers can write more concise and readable code, and avoid having to implement common string manipulation functions from scratch. Additionally, StrLua’s functions are designed to be intuitive and easy to use, making it a great choice for anyone working with strings in Lua.

:memo: Quick Notes :memo:

The module is under MIT License and the examples of how to use the module is in this link and in the module source!!

:star: How to download the module? :star:

To download the module. All you have to do is going to this link and find StrLua.lua because the source of the module is there.

:memo: Contact Information :speaking_head:

Discord username: sutart_da_penguin (sutart) or noob1182 (sir_pretender)
Discord Id (Backup incase name changed): 855754836548648960 (sutart) or 1199552739055767592 (noob1182)

2 Likes

Any ideas or feedback for this module is much appreciate!! :heartpulse:

As a Python coder, I find this makes strings more convenient to manipulate. I appreciate you for making this bro.

Could you also post examples? I’d like to see examples of using the module.

1 Like

On the post I have mentions that the examples are in the module source and the link I put above.

1 Like

Here @CyrusDevs . Enjoy the module!

1 Like

I think I linked the API instead of example in the “link” so I think u should check the module source instead.

I don’t really see the point of this module, Luau already has a string library that does pretty much all of this.

2 Likes

There’s actually a lot of extremely useful functions here that roblox does not provide, especially the is... functions. I’d suggest taking a look at the source code.

Lua doesn’t got swapcase() function in string library.