Laravel Stringable for JavaScript

Rudashi
Jul 5, 2022

--

Laravel Stringable
Photo by Mohammad Rahmani on Unsplash

Laravel has a great helper for strings. It’s called Fluent Strings.

I present to you a new JS Stringable service inspired by Laravel Stringable class. Install the package to use it in your project.

Installation

npm install stringable-laravel

Usage

The package uses almost every method from Laravel’s helper documentation. For example:

Example of use lower() method

The main benefit of this package is the ability to chain multiple string operations together using a more readable syntax compared to traditional string operations.

Fluent String

--

--

Rudashi
0 Followers

Full-Stack Developer