Package Exports
- stringable-laravel
- stringable-laravel/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stringable-laravel) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Stringable
Javascript version's of Laravel's Illuminate\Support\Str
Based on great Laravel string helper
Installation
NPM
npm install --save-dev stringable-laravelYarn
yarn add stringable-laravel --saveCDN
<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-d6bce77c8329Introduction
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.