1.0.4 • Published 1 year ago

placeholder-utils v1.0.4

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

Placeholder Utils

Description

Placeholder Utils is a package that provides utility functions for templates and placeholder functionalities.

Features

  • Replace placeholders from string templates
  • Extract placeholders from string templates
  • Generate placeholder data for testing (WIP)

Installation

You can install Placeholder Utils using: npm install placeholder-utils.

Types

replacePlaceholders(template: string, replacements: Record<string, string>, placeholderPrefix?: string, placeholderSuffix?: string): string;

extractPlaceholders(template: string, placeholderPrefix?: string, placeholderSuffix?: string): string[];

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago