mf

0.1.8 • Public • Published

MF

MF is the Massively Fun "commons" library, for use across projects. Some things it gives you:

  1. MfTaskManager - an abstraction around setTimeout/process.nextTick. You may execute tasks:

    1. Soon, once
    2. Very soon, once
    3. Repeatedly
  2. MfNotificationCenter - simple sub/pub, loosely modeled after Cocoa's NotificationCenter

  3. MessageChannels (via mf.core.channel()) - provides a single-pub, multi-sub channel.

  4. Various utility functions useful for all MF projects, such as:

    1. A component loader, for exposing internal modules as components of the greater NPM module.
    2. A Configuration object, which can be backed by an arbitrary configuration provider.
    3. Several latches for asynchronous conditionals.
  5. Various collection classes:

    1. Hashtable, which provides reasonably quick lookup. Allows you to use objects as keys, provided they implement hashCode() and equals().
    2. OrderedHash, modelled after after Ruby's Hash implementation, OrderedHash is basically a doubly linked list with hash table look up. This allows ordered iteration and constant time look up of elements by UUID.
    3. A priority queue.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.8
    13
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.8
    13
  • 0.1.7
    1
  • 0.1.4
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i mf

Weekly Downloads

16

Version

0.1.8

License

none

Last publish

Collaborators

  • ggoodale