4 个仓库
The practice of adding utility methods directly to native language object prototypes.
Distinct from JavaScript Extensions: Shortlist candidates focus on native bridges (FFI) or plugins, not prototype-level method injection.
Explore 4 awesome GitHub repositories matching programming languages & runtimes · Prototype Extensions. Refine with filters or upvote what's useful.
Sugar 是一个 JavaScript 实用程序库,旨在通过额外的方法扩展原生对象和原型,以进行数据操作和转换。它作为一个工具包,用于对象实用程序、日期操作、字符串变形以及缺失或损坏的标准语言功能的 Polyfill。 该库提供了将实用方法直接映射到内置原型或将值包装在临时对象中以实现方法链的能力,而无需修改全局原型。它还包括一个 Polyfill 系统,通过实现缺失的现代语言功能来确保跨不同执行环境的一致行为。 功能包括国际日期格式化和人类可读日期字符串的解析。该库还通过字符串变形和规范化、嵌套对象的深度属性遍历以及区域感知数组排序来处理自然语言处理。此外,它还提供了用于克隆可变对象以及定义数字、日期和字符串值范围的工具。
Extends native JavaScript objects and prototypes with additional utility methods for streamlined data manipulation.
This repository is a collection of JavaScript coding challenges and a comprehensive interview guide. It provides reference implementations and educational examples designed to help developers master language fundamentals and prepare for technical interviews. The project covers a wide array of specialized implementations, including functional programming patterns like currying and partial application, as well as asynchronous patterns for concurrency control. It also includes practical examples of Document Object Model manipulation and the implementation of common data structures such as stacks
Demonstrates adding utility methods directly to native language object prototypes for shared behavior.
js-base64 是一个用于在 Base64 格式与 JavaScript 字符串或字节数组之间进行编码和解码的 JavaScript 库。它提供了将二进制数据转换为 Base64 字符串,并将这些字符串转换回原始文本或原始字节格式的实用工具。 该项目包含一个 Base64 字符串验证器,用于验证序列是否遵循正确的格式、字符和填充。它还支持通过替换会导致 URI 编码错误的字符来创建 URI 安全的 Base64 字符串,并允许移除填充。 该库提供了一个原型扩展实用工具,可直接向标准 JavaScript 字符串和数组对象添加编码和解码方法。
Injects encoding and decoding methods directly into the native JavaScript string and array prototypes.
Spacetime 是一个 JavaScript 时区库和日期操作框架,专为解析、格式化和管理全球时区日期而设计。它提供了一个用于本地化日期组件的国际化工具,并包含用于 TypeScript 环境的静态类型定义,以确保类型检查和自动补全。 该项目具有用于自定义日期逻辑的插件系统,允许将专用方法和行为注入日期对象。这种可扩展性使得能够通过基于原型的方法扩展来实现项目特定的时间需求。 该库涵盖了广泛的日期和时间操作,包括用于添加或减去时间单位的日历数学、日期比较实用程序,以及用于检索日历详细信息的组件提取。它处理全球时区管理,具有区域偏移、夏令时计算以及不同时区之间转换的功能。 该系统还提供针对 ISO 字符串、纪元和自然语言输入的解析和验证,以及使用区域语言设置和自定义模板将日期对象转换为人类可读文本的格式化工具。
Injects custom date behaviors directly into the native JavaScript Date prototype via a plugin system.