awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
jayphelps avatar

jayphelps/core-decoratorsArchived

0
View on GitHub↗
4,495 星标·255 分支·JavaScript·MIT·4 次浏览

Core Decorators

core-decorators 是一个 JavaScript 类装饰器库和框架实用程序,用于扩展类功能。它提供了一系列工具,用于实现类行为混入 (mixins)、自动绑定方法以避免手动构造函数配置,以及验证子类方法是否正确覆盖父类方法。

该库包括一个代码弃用工具包,用于通过控制台警告标记过时的方法,以及一个用于测量性能和持续时间的函数执行分析器。它进一步通过自定义装饰器和共享逻辑注入系统,实现了对类和方法行为的修改。

其他功能涵盖对象属性控制,包括强制执行只读属性和限制属性可见性。该工具包还提供性能原语,例如结果缓存和延迟属性初始化,以将执行推迟到首次访问时。

Features

  • Behavioral Injection - Provides a comprehensive system of decorators for injecting shared behaviors and custom logic into JavaScript classes.
  • Class Mixins - Implements class behavior mixins to inject shared functionality from multiple sources into a single target class.
  • Override Validations - Ensuring that subclass methods correctly override parent methods to prevent accidental naming collisions or signature mismatches.
  • Automatic Context Binding - Automatically binds class methods to their instances to ensure the correct context is maintained during callbacks.
  • Function Context Binding - Provides utilities to permanently bind the this context to class instances for consistent function execution.
  • Function Decorators - Allows wrapping methods with custom helper functions or third-party utilities to augment their behavior.
  • Object Method Binding - Automatically associates class methods with their respective instances to avoid manual constructor binding.
  • General Purpose Mixins - Implements reusable class fragments to inject shared behavior across diverse class hierarchies.
  • Higher-Order Function Wrapping - Augments method behavior by wrapping original functions with helper logic for profiling, caching, or warning suppression.
  • Class Decorators - Provides a collection of class decorators to modify and extend the behavior of JavaScript classes and methods.
  • Automatic Method Binding - Ensures class methods maintain a permanent reference to the class instance without requiring manual constructor binding.
  • API Deprecation Tooling - Marks outdated methods as deprecated to warn developers and guide them toward newer API alternatives.
  • Override Enforcement - Verifies that subclass methods correctly override parent class methods to ensure architectural integrity.
  • Override Validation - Verifies that subclass methods correctly override parent class methods to prevent naming collisions and signature mismatches.
  • Override Verification - Verifies that subclass methods correctly override parent methods to prevent naming collisions and signature mismatches.
  • Deprecated Feature Markings - Provides a mechanism to flag methods as obsolete to warn developers through console warnings.
  • Lazy Property Initialization - Implements deferred property initialization to delay execution and reduce memory allocations until first access.
  • Method Wrapping - Applies external functions and arguments to a method to wrap it with custom logic.
  • Property Descriptors - Manipulates property descriptors to control the enumerability, writability, and configurability of class members.
  • Object Property Descriptor Controls - Enforces stricter data integrity by restricting property visibility and marking class members as read-only.
  • API Deprecation Notifications - Emits custom console warnings and URLs when deprecated methods are invoked to notify developers.
  • Developer Deprecation Warnings - Provides a toolkit for flagging obsolete methods with console warnings to guide developers during codebase migration.
  • Function Execution Timing - Tracks the elapsed time of function execution using console timing labels to identify bottlenecks.
  • Function Execution Timers - Measures the execution time of functions using browser console timers via decorators.
  • Performance Profilers - Triggers browser profiling using console timers for single runs or specific time intervals.
  • Performance Profiling - Includes tools to monitor execution time and resource usage to identify performance bottlenecks.

Star 历史

jayphelps/core-decorators 的 Star 历史图表jayphelps/core-decorators 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

jayphelps/core-decorators 是做什么的?

core-decorators 是一个 JavaScript 类装饰器库和框架实用程序,用于扩展类功能。它提供了一系列工具,用于实现类行为混入 (mixins)、自动绑定方法以避免手动构造函数配置,以及验证子类方法是否正确覆盖父类方法。

jayphelps/core-decorators 的主要功能有哪些?

jayphelps/core-decorators 的主要功能包括:Behavioral Injection, Class Mixins, Override Validations, Automatic Context Binding, Function Context Binding, Function Decorators, Object Method Binding, General Purpose Mixins。

jayphelps/core-decorators 有哪些开源替代品?

jayphelps/core-decorators 的开源替代品包括: omonimus1/competitive-programming — This repository serves as a comprehensive resource for competitive programming and technical interview preparation. It… jlfwong/speedscope — Speedscope is a web-based performance profiler that visualizes profiling data through interactive flamegraphs and… jazzband/django-silk — Django Silk is a profiling and inspection toolset for Django applications designed to capture SQL queries, HTTP… greatfrontend/top-javascript-interview-questions — This project is a technical interview preparation resource focused on JavaScript. It provides a collection of common… easylogging/easyloggingpp — Easyloggingpp is a header-only C++ logging framework and diagnostic tool designed for recording system events and… folke/snacks.nvim — snacks.nvim is a comprehensive collection of quality-of-life plugins and utilities designed to extend the core…

Core Decorators 的开源替代方案

相似的开源项目,按与 Core Decorators 的功能重合度排序。
  • jlfwong/speedscopejlfwong 的头像

    jlfwong/speedscope

    6,501在 GitHub 上查看↗

    Speedscope is a web-based performance profiler that visualizes profiling data through interactive flamegraphs and timeline views. It ingests performance profiles from a wide range of sources, including Chrome, Firefox, Safari, Node.js, .NET Core, Instruments, Hermes, GHC, and Ruby, normalizing them into a common schema for unified analysis. The tool distinguishes itself with a canvas-based rendering engine that draws flamegraphs without DOM nodes for each frame, and a WebAssembly-based rendering pipeline for high-performance drawing. It offers left-heavy stack sorting to surface the most time

    TypeScriptflamegraphflamegraphsperformance-profiling
    在 GitHub 上查看↗6,501
  • omonimus1/competitive-programmingomonimus1 的头像

    omonimus1/competitive-programming

    978在 GitHub 上查看↗

    This repository serves as a comprehensive resource for competitive programming and technical interview preparation. It provides a structured collection of source code implementations for fundamental data structures and classic algorithmic problems, designed to help developers master core computer science concepts and efficient coding strategies. Beyond standard problem-solving, the project distinguishes itself by integrating software design patterns into its algorithmic implementations. It demonstrates how to apply structural and behavioral patterns—such as decorators, observers, and singleto

    C++algorithmalgorithms-and-data-structurescodechef-solutions
    在 GitHub 上查看↗978
  • jazzband/django-silkjazzband 的头像

    jazzband/django-silk

    4,926在 GitHub 上查看↗

    Django Silk is a profiling and inspection toolset for Django applications designed to capture SQL queries, HTTP request data, and execution timing for diagnostics. It functions as a performance profiler and debugging middleware that records runtime execution data to provide a comprehensive overview of application behavior. The system includes a database profiler for identifying slow operations through detailed timing data and an HTTP request inspector for reviewing headers, bodies, and network traffic via a web interface. It allows for the reproduction of specific server requests through gene

    Python
    在 GitHub 上查看↗4,926
  • greatfrontend/top-javascript-interview-questionsgreatfrontend 的头像

    greatfrontend/top-javascript-interview-questions

    9,685在 GitHub 上查看↗

    This project is a technical interview preparation resource focused on JavaScript. It provides a collection of common technical questions, detailed answers, and conceptual quizzes designed to help users master core language fundamentals and browser APIs. The resource utilizes an interactive infrastructure that includes a coding workspace with in-browser runtime execution and an automated test suite to validate code correctness. It organizes content through curated learning paths and modular concept mapping to decompose complex language fundamentals into searchable study modules. The curriculu

    MDXfront-end-developmentinterviewsjavascript
    在 GitHub 上查看↗9,685
  • 查看 Core Decorators 的所有 30 个替代方案→