@robert.tools/convert
v1.1.0
Published
A conversion package
Maintainers
Readme
🗂️ @robert.tools/convert
A conversion package for robert.tools.
📜 Usage
🟢 Installation
npm install @robert.tools/convert📝 Sample usage
import { convert2CamelCase } from '@robert.tools/convert';📜 Usage
convert2CamelCase('hello_world'); // 'helloWorld'🗃️ API
convertNumber2String(value: number): string- Converts the input number to a string.convert2KeyValue(line: string): KEY_VALUE- Converts the input string to a key-value object.convert2CamelCase(key: string): string- Converts the input key to camelCase.convert2KebapCase(key: string): string- Converts the input key to kebap-case.convert2HeaderCase(key: string): string- Converts the input key to Header Case.normalizeText(value: string): string- Normalizes the input text by removing diacritics and converting to lowercase.cleanSpaces(text: string): string- Cleans up extra spaces in the input text.absoluteUrl(value: $string, baseUrl: string): $string- Resolves the absolute URL based on the base URL.
⚖️ Notes
This software is hand-crafted, test-driven and assisted by AI tools. I know each line of my code. ✌️
| Tool | Comment | | ------------- | ------------- | | | Test-driven development with Jest | | | Part of the robert.tools ecosystem | | | Code completion | | | chatGPT research |
