1.1.1 • Published 2 years ago
@goudekettingrm/parameterize v1.1.1
Parameterize
A TypeScript library for normalizing and parameterizing strings, making them URL-friendly.
Installation
Install parameterize using npm:
npm install @goudekettingrm/parameterizeor using yarn:
yarn add @goudekettingrm/parameterizeUsage
Import and use the parameterize function in your TypeScript or JavaScript project:
import { parameterize } from '@goudekettingrm/parameterize';
const normalizedString = parameterize('Äpfel & Birnen!');
console.log(normalizedString); // Outputs: 'apfel-birnen'API
- parameterize(str: string, options?: { charCap?: number, separator?: string }): string
- str: The string to be normalized and parameterized.
- options: Optional settings.
- charCap: Maximum length of the output string.
- separator: The separator to use instead of hyphens.
Contributing
Contributions are welcome! Please read our Contributing Guide for details on our code of conduct, and the process for submitting pull requests.
License
This project is licensed under the MIT License.