wt-sample-5aw
v1.0.1
Published
A simple string capitalization utility package
Downloads
8
Maintainers
Readme
wt-sample-5aw
A simple JavaScript utility to capitalize the first letter of a string.
Installation
npm install wt-sample-5awUsage
const capitlise = require('wt-sample-5aw');
const result = capitlise('hello world');
console.log(result); // Output: "Hello world"API
capitlise(str)
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
const capitlise = require('wt-sample-5aw');
console.log(capitlise('javascript')); // "Javascript"
console.log(capitlise('hello world')); // "Hello world"
console.log(capitlise('a')); // "A"License
MIT
Author
Vyshnavi [email protected]
