1.0.5 • Published 9 months ago

string-capitalizer v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

String Capitalizer

String Capitalizer is a light weight library written in vanilla JavaScript (ES6) that simplifies string capitalization by offering mutiple string manipulation functions. At the moment the library consists of a single string manipulation method, it will expand to include more methods in later versions.

Capitalize string

capitalizeString() method capitalizes the first letter of a string and returns the capitalized string. If invalid string is inputted, 'invalid string'-error will be thrown.

Use instructions

Start by importing StringManipulator. Create a new instance of StringManipulator and invoke the method you wish to use.

import StringManipulator from 'string-capitalizer'

const stringManipulator = new StringManipulator(stringToManipulate)

const capitalizedString = stringManipulator.capitalizeString('hello world')

console.log(capitalizedString) // Hello world

Disclaimer

This library is still in development and is not yet ready for production use. Use at your own risk.

It is a practice project for learning purposes.

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago