change-capitalization

2.0.2 • Public • Published

Module Summary

The library change-capitalization is used to increase or decrease any letter of a string using an index.


How to import

Use this like in the example below:

import { toLowerCase, toUpperCase } if you are using both

import { toLowerCase } if you are using lowerCase version

import { toUpperCase } if you are using upperCase version


Explanation

toLowerCase(word)(letterIndex) => changedWord

INPUT PARAMS:

word: string

letterIndex: number

OUTPUT VALUE:

changedWord: string


Examples

console.log(toLowerCase("Hello World")(0)) // hello world

console.log(toUpperCase("Hello World")(10)) // Hello WorlD

Package Sidebar

Install

npm i change-capitalization

Weekly Downloads

2

Version

2.0.2

License

ISC

Unpacked Size

2.61 kB

Total Files

3

Last publish

Collaborators

  • apolinaryszumski