New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

trait

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trait

Trait is a smart attribute manager. Not traits in ruby, just because good names are already taken and even not used.

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
23
43.75%
Maintainers
1
Weekly downloads
 
Created
Source

Trait

Trait is a smart attribute manager.

Not traits in ruby, just because good names are already taken and even not used ╮(╯﹏╰)╭.

Installation

npm install trait --save

Usage

var trait = require('trait');

Methods

.get(name)

.get()

.set(name, value)

.set(values)

.writable()

.enumerable()

.reset(name)

.reset()

.add()

trait(attrs, options)

new trait.Trait(attrs, options)

Keywords

trait

FAQs

Package last updated on 26 Sep 2013

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