1.1.8 • Published 8 years ago

sirrobert-mixins v1.1.8

Weekly downloads
3
License
MIT
Repository
bitbucket
Last release
8 years ago

Rationale

I want a collection of mixins that I don't have to import individually. This is that collection.

The sirrobert- prefix.

This set of modules in the sirrobert- namespace is largely for personal use. If there's ever any reason to release it under a better name or as a framework or toolkit, I'm happy to publish it under a new name.

Installation

Local installation

npm install --save sirrobert-mixins

Global installation

npm install --global sirrobert-mixins

Usage

First require the plugin. I like to use the Mixin name. Also, this module works well with the sirrobert-mixin plugin, which is a mixin manager.

let Mix   = require("sirrobert-mixin");
let Mixin = require("sirrobert-mixins");

Then you can use the mixins individually.

class MyClass extends Mix.with(Mixin.Params);

Alternately, you can load just the module you want:

let Mix    = require("sirrobert-mixin");
let Params = require("sirrobert-mixins").Params;

class MyClass extends Mix.with(Params);

Mixins List

Each mixin has its own readme in the same dir as the source code for it.

  • Params A mixin for managing class construction parameters.
  • Hook A mixin for adding hook capabilities to a class.

TO DO

  1. Add module method to load only the modules you want and return them as an array or something.
1.1.8

8 years ago

1.1.7

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago