Laravel Stringable for JavaScript

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

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store