Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.