
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
IprogStringUtils is a Ruby gem that extends the String
class with a set of useful string manipulation utilities. It includes methods for converting strings to various cases, truncating strings, reversing words, stripping HTML tags, and more.
This gem is provided by IPROG TECH, an information technology company specializing in web development services using Ruby on Rails. IPROG TECH also offers free programming tutorials.
Providing Good Quality Web Services:
To install the gem and add it to your application's Gemfile, run on your terminal:
bundle add iprog_string_utils
If you're not using Bundler to manage dependencies, install the gem by running:
gem install iprog_string_utils
camelCase
, snake_case
, and kebab-case
"hello world".camel_case
=> "helloWorld"
"Hello World Example".camel_case
=> "helloWorldExample"
"ThisIsATest".snake_case
=> "this_is_a_test"
"Hello World Example".snake_case
=> "hello_world_example"
"Hello World!".kebab_case
=> "hello-world"
"ThisIsAnotherTest".kebab_case
=> "this-is-another-test"
"This is a very long string".truncate(10)
=> "This is a..."
"This is a long string".truncate(15, '--')
=> "This is a lon--"
"hello world".reverse_words
=> "world hello"
"one two three".reverse_words
=> "three two one"
"<p>Hello <strong>world</strong>!</p>".strip_html
=> "Hello world!"
"<div>Some <em>text</em></div>".strip_html
=> "Some text"
"madam".palindrome?
=> true
"racecar".palindrome?
=> true
"hello".palindrome?
=> false
"A man, a plan, a canal, Panama".palindrome?
=> true
"...hello...".trim_custom('.')
=> "hello"
"$$$money$$$".trim_custom('$')
=> "money"
"###header###".trim_custom('#')
=> "header"
Bug reports and pull requests are welcome on GitHub at https://github.com/iprog21/iprog_string_utils.
This gem is available as open source under the terms of the MIT License.
This project has adopted the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to iprog.tech@gmail.com.
FAQs
Unknown package
We found that iprog_string_utils 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.