/stringformatter

npm package for format senteces

Primary LanguageJavaScript

stringformatter

npm package for format sentences

📋 Usage

Pass your unformatted sentece to the method in package and obtain the formatted sentence.
Ex: 
Input: My uNfoRmated. seNTeNe coMINg oF. my OWN aPi.
Output: My unformated. Sentence coming of. My own api.
Thats all!

strformatter

⌨ How to use

Simple. Assumig you already have the nodejs installed, so: 

# Installing package
npm i @jhonathannc/strformatter

# Import the package in your js file:
const strformatter = require('@jhonathannc/strformatter')

# My string.
let str = 'My uNfoRmated. seNTeNe coMINg oF. my OWN aPi.';

# Calling the format method and getting the formatted string
strformatter.formatStr(str).formattedStr

Like this package? Give a star. Regards.