Skip to content

A NPM package that provides utility functions for templates and placeholder functionalities

Notifications You must be signed in to change notification settings

thinzarhninyu/placeholder-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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[];

About

A NPM package that provides utility functions for templates and placeholder functionalities

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published