trait

    0.1.2 • Public • Published

    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

    none

    Install

    npm i trait

    DownloadsWeekly Downloads

    11

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • avatar