New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

Classy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Classy

Brings the MooTools 1.x Class sugar to Prime

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Prime with Class

Make Prime Classy.

If you're used to MooTools 1.x Class, and think prime is too basic? Classy will give you your familiar features:

  • Mixins (Implements)
  • .parent (Will wrap methods)
  • Will clone/reset objects and arrays in the prototype to prevent shared objects
  • Alias Implements, Extends and initialize
  • Tries to be compatible with the MooTools 1.x Class API.

Wrapping functions and reseting are not very elegant however. I would advice to use the basic prime wherever possible.

TODO

  • Implement Class.Mutators
  • Create another Classy implementation that will break 1.x API
    • I'd rather see a .parent without wrapping
    • Don't reset/clone objects
    • Create a nice packages with some nice additional goodies like:
      • Class.Bind (by @cpojer)

FAQs

Package last updated on 01 May 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc