Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
classy-traits
Advanced tools
This is just a thin wrapper around traits.js for use with "class" altjs languages like coffeescript and livescript.
For more documentation see traits.js.
Inherit from Trait somewhere in your hierarchy. It's easiest if you go to most super class of your classes, and inherit from there.
Then you need just one field in your class for the traits.
Example:
require! T: \classy-traits
class Foo extends T
traits: ->
trait:
foo: 3
Compose other traits. Must be an array of traits.
Prototype to create traits from. Must be an actual prototype.
Attributes to exclude from specified traits. Must be an object with the form:
{
<attribute_to_exclude1>: <trait_to_exclude_from1>,
<attribute_to_exclude2>: <trait_to_exclude_from2>,
...
<attribute_to_excluden>: <trait_to_exclude_fromn>
}
Traits to override. This favors earlier traits. Must be an array of traits.
Required attributes. Must be an array of strings.
Attributes to rename from specified traits. Must be an object of the form:
{
<attribute_to_rename1>: [<new_name1>, <trait_to_rename_from1>],
<attribute_to_rename2>: [<new_name2>, <trait_to_rename_from2>],
...
<attribute_to_renamen>: [<new_namen>, <trait_to_rename_fromn>]
}
Object to create new trait. Must be an object.
FAQs
Thin wrapper around traits.js that supports "classes".
The npm package classy-traits receives a total of 0 weekly downloads. As such, classy-traits popularity was classified as not popular.
We found that classy-traits 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.