🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

es-string-utils

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-string-utils

A collection of utility functions to manipulate string in javascript and typescript

0.0.9
latest
Source
npm
Version published
Weekly downloads
28
47.37%
Maintainers
1
Weekly downloads
 
Created
Source

ES String Utils

NPM

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';

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

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

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

Author

LinkedIn

Keywords

string

FAQs

Package last updated on 21 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts