Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 2.48 KB

readme.md

File metadata and controls

72 lines (56 loc) · 2.48 KB

ES String Utils

NPM

NPM Version License

A collection of utility functions which Javascript/Typescript misses for string manipulation in javascript and typescript.

Installation using npm

npm install es-string-utils --save

Installation using yarn

yarn add es-string-utils

Usage with es6 import

import { containsAnyIgnoreCase, capitalize } from 'es-string-utils';
import * as esStringUtils from 'es-string-utils';

const contains = containsAnyIgnoreCase('This is the source string', 'tocheck'); //false

const capitalizedText = capitalize('capitalize This strinG'); //Capitalize This String

const concatenated = esStringUtils.concat('homelander', ' leader o', 'f V7'); //homelander leader of V7

Usage with plain old javascript

const stringUtils = require('es-string-utils');

const contains = stringUtils.containsAnyIgnoreCase('This is the source string', 'tocheck'); //false

const capitalizedText = stringUtils.capitalize('capitalize This strinG'); //Capitalize This String

Available Methods

many more on the way

Contributors ✨

LinkedIn