
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
A cross platform JavaScript library that provides a classical interface to prototypal inheritance.
A cross platform JavaScript library that provides a classical interface to prototypal inheritance.
This project is now deprecated in favor of the ECMAScript 6 class syntax, this project will no longer be maintained.
Clazzy has a single method with this signature:
Function Clazzy.create(Object definition)
It returns a constructor function, with a prototype populated using the provided definition, that you can instantiate using the new
keyword.
var Foo = Clazzy.create(
{
initialize : function ()
{
this.foo = 'foo';
},
bar : function ()
{
return 'bar';
},
baz : function (baz)
{
return baz;
},
static :
{
qux : function ()
{
return 'qux';
}
}
});
Note: Instance properties can be defined in the definition, however their initial value should be set in the constructor.
var Bar = Clazzy.create(
{
extend : Foo,
initialize : function ()
{
this.super();
this.corge = 'corge';
},
baz : function ()
{
return 'bar';
},
baz : function (baz)
{
return 'super ' + this.super(baz);
}
});
Note:
super
method.Clazzy provides a method of code reuse called includes. Behaving similarly to Ruby's mixins and PHP's traits, they enable a developer to reuse sets of methods freely in several independent classes defined in different class hierarchies.
var Baz = Clazzy.create(
{
include : [Foo],
moo : function ()
{
return 'moo';
}
});
Note:
Clazzy is available through the Node Package Manager (NPM), so you can install it like so:
npm install clazzy
This project doesn't have much of a build process. It does have tests though; which you can run with Grunt like so:
grunt test
This also runs code quality checks using JSHint. Please refer to the .jshintrc
file to familiar yourself with the rules.
This project is released under the MIT License.
FAQs
A cross platform JavaScript library that provides a classical interface to prototypal inheritance.
We found that clazzy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.