1.0.3 • Published 5 years ago

simple-string-extensions v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Simple String Extensions for TypeScript

A set of simple extensions for the JavaScript String class.

Build Status NPM Status

Installation and usage

In terminal/console type:

npm install simple-string-extensions

Somewhere early in code use:

import 'simple-string-extensions';

Finally in code:

const someCapitalizedStr = someStr.capitalize();
const someCamelCaseStr   = someStr.toCamelCase();

Available extensions

  • capitalize: A method to capitalize strings.
  • toCamelCase: A method to transform strings into camel case.
  • toConstantCase: A method to transform strings into constant case.
  • toDashCase: A method to transform strings into dash case.
  • toPascalCase: A method to transform strings into pascal case.
  • toSnakeCase: A method to transform strings into snake case.
  • toSpaceCase: A method to transform strings into space case.

Run tests

Tests can be run with:

npm run test
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago