
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
@aceworks-studio/string
Advanced tools
A set of Luau utility functions for Lua string manipulation
A set of utility functions for string manipulation.
Add @aceworks-studio/string
in your dependencies:
yarn add @aceworks-studio/string
Or if you are using npm
:
npm install @aceworks-studio/string
function contains(value: string, substring: string): boolean
Checks if the given string value
contains substring
.
function endsWith(value: string, suffix: string): boolean
Checks if the given string value
ends with the specified suffix suffix
. Returns true
if value
ends with suffix
, otherwise false
.
function startsWith(value: string, prefix: string): boolean
Checks if the given string value
starts with the specified prefix prefix
. Returns true
if value
starts with prefix
, otherwise false
.
function trim(value: string): string
Removes whitespace from both ends of the given string. Returns the trimmed string.
function trimEnd(value: string): string
Removes whitespace from the end of the given string. Returns the trimmed string.
function trimStart(value: string): string
Removes whitespace from the beginning of the given string. Returns the trimmed string.
This project is available under the MIT license. See LICENSE.txt for details.
If you would like to use this library on a Lua environment where it is currently incompatible, open an issue (or comment on an existing one) to request the appropriate modifications.
The library uses darklua to process its code.
FAQs
A set of Luau utility functions for Lua string manipulation
The npm package @aceworks-studio/string receives a total of 0 weekly downloads. As such, @aceworks-studio/string popularity was classified as not popular.
We found that @aceworks-studio/string demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.