Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
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 2 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.