Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aceworks-studio/string

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aceworks-studio/string

A set of Luau utility functions for Lua string manipulation

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

checks version GitHub top language license npm

@aceworks-studio/string

A set of utility functions for string manipulation.

Installation

Add @aceworks-studio/string in your dependencies:

yarn add @aceworks-studio/string

Or if you are using npm:

npm install @aceworks-studio/string

Content

contains

function contains(value: string, substring: string): boolean

Checks if the given string value contains substring.

endsWith

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.

startsWith

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.

trim

function trim(value: string): string

Removes whitespace from both ends of the given string. Returns the trimmed string.

trimEnd

function trimEnd(value: string): string

Removes whitespace from the end of the given string. Returns the trimmed string.

trimStart

function trimStart(value: string): string

Removes whitespace from the beginning of the given string. Returns the trimmed string.

License

This project is available under the MIT license. See LICENSE.txt for details.

Other Lua Environments Support

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.

Keywords

FAQs

Package last updated on 17 Oct 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc