1.1.1 • Published 4 months ago

@goudekettingrm/parameterize v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Build Specs codecov

Parameterize

A TypeScript library for normalizing and parameterizing strings, making them URL-friendly.

Installation

Install parameterize using npm:

npm install @goudekettingrm/parameterize

or using yarn:

yarn add @goudekettingrm/parameterize

Usage

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.

1.1.1

4 months ago

1.1.0

4 months ago