Skip to content

robotii/ruined-sod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruined-sod

A node package for allowing object dispatch based on attributes of the object.

Access the dispatcher by calling Sod(), for example:

var Sod = require("ruined-sod");
var dispatcher = Sod();

This will return the default dispatcher.

To create a new dispatcher, call the function with true as a parameter.

var dispatcher = Sod(true);

The following functions are available on the dispatcher by default.

Functions

  • clear
  • dispatch
  • add
  • findexact
  • debug
  • find
  • remove

TODO

  • Change to prototype-based system
  • Add default() method on module to return the default instance
  • Documentation
  • Get browser support working
  • Allow calling via new

About

A simple object dispatcher for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published