1.4.5 • Published 3 months ago

stringable-laravel v1.4.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 months ago

Stringable

GitHub last commit GitHub repo size GitHub Workflow Status Twitter Follow

Javascript version's of Laravel's Illuminate\Support\Str

Based on great Laravel string helper

Installation

NPM

npm install --save-dev stringable-laravel

Yarn

yarn add stringable-laravel --save

CDN

<script src='https://unpkg.com/stringable-laravel@latest/dist/index.js'></script>

Usage

Import package:

const {Str, Stringable} = require('stringable-laravel');

//or

import {Str, Stringable} from 'stringable-laravel';

Typical usage:

const {Str, Stringable} = require('stringable-laravel');

const message = 'hello world';

console.log(Stringable.of(message).upper().toString());

// HELLO WORLD

console.log(Str.uuid().toString());

// 3b097562-88aa-4f50-b28a-d6bce77c8329

Introduction

Fluent strings provide a more fluent, object-oriented interface for working with string values, allowing you to chain multiple string operations together using a more readable syntax compared to traditional string operations.

Available Methods

List of all fluent methods you can find here.

Strings methods

List of all static methods you can find here.

Changelog

Detailed changes for each release are documented in the release notes.

1.4.5

3 months ago

1.4.4

8 months ago

1.4.3

10 months ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.8

2 years ago

1.2.9

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago