1.0.0 • Published 1 year ago

string_manipulator_gb_nodejs v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

StringManimpulator

This library provides useful string manipulation functions.

Installation

npm install StringManimpulator

Usage
const { capitalize, reverseString, toCamelCase } = require('StringManimpulator');

console.log(capitalize('hello')); // "Hello"
console.log(reverseString('hello')); // "olleh"
console.log(toCamelCase('hello_world')); // "helloWorld"

Functions
capitalize(str)

Capitalize the first letter of the string.
reverseString(str)

Reverse the given string.
toCamelCase(str)

Convert a string to camelCase.
1.0.0

1 year ago