A simple string capitalization utility package
npm install wt-sample-5awbash
npm install wt-sample-5aw
`
Usage
`javascript
const capitlise = require('wt-sample-5aw');
const result = capitlise('hello world');
console.log(result); // Output: "Hello world"
`
API
$3
Capitalizes the first letter of the input string.
Parameters:
- str (string): The string to capitalize
Returns:
- (string): The string with the first letter capitalized
Examples
`javascript
const capitlise = require('wt-sample-5aw');
console.log(capitlise('javascript')); // "Javascript"
console.log(capitlise('hello world')); // "Hello world"
console.log(capitlise('a')); // "A"
``