@goudekettingrm/parameterize
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @goudekettingrm/parameterize

Weekly Downloads

12

Version

1.1.1

License

MIT

Unpacked Size

13.8 kB

Total Files

7

Last publish

Collaborators

  • goudekettingrm