Have ideas to improve npm?Join in the discussion! »

strings-plus

1.0.4 • Public • Published

strings-plus

More methods for strings.

alt text alt text alt text

Installation

npm i strings-plus --save

Usage

const { capitalize } = require('strings-plus');

"my string".capitalize() // "My string"

Methods

  • capitalize() Returns a string with first letter capitalized.
  • capitalizeEachWord() Returns a string with each word capitalized.
  • capitalizeEveryOther() Returns a string where each other character is capitalized.
  • removeWhitespace() Returns a string without any spaces.
  • removeExtraSpace() Returns a string without any multiple spaces.

Install

npm i strings-plus

DownloadsWeekly Downloads

12

Version

1.0.4

License

ISC

Unpacked Size

3.67 kB

Total Files

4

Last publish

Collaborators

  • avatar