2 个仓库
Real-time conversion of raw user input into a formatted string based on a defined mask.
Distinct from Value Transformations: None of the candidates cover the specific process of masking raw input strings into formatted values during typing.
Explore 2 awesome GitHub repositories matching user interface & experience · Input Value Transformations. Refine with filters or upvote what's useful.
text-mask is a JavaScript library for enforcing consistent text formats and dynamic masking patterns in web input fields. It provides a suite of utilities to constrain text field entries to predefined masks and validators, ensuring data consistency across multiple frontend frameworks including React, Angular, and Vue. The library supports dynamic pattern generation using functions to handle variable data formats and localized patterns. It includes capabilities for processing bulk text entries, such as pasted content and browser auto-fill data, while maintaining the integrity of the defined in
Converts raw input strings into formatted masked values by tracking cursor position and character indices.
imaskjs 是一个 JavaScript 输入掩码库和 DOM 输入管理器,用于实时强制执行用户输入的特定模式、数据类型和范围。它作为一个数据格式化库和输入验证工具,使用掩码和自定义管道将原始输入值转换为格式化的字符串。 该项目提供动态掩码功能,允许输入模式根据用户输入的字符实时更改或切换。它支持复杂的输入约束,包括正则表达式、数值范围、基于日期的验证和字符枚举。 该库涵盖了广泛的输入处理和数据管理任务,包括预处理和后处理转换、用于 API 提交的原始值提取,以及将掩码应用于标准 HTML 输入字段和 contenteditable 元素。
Processes raw user input through a sequence of callbacks to format data in real time.