Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript module integration API
JavaScript
tree: 509fe5d6e4

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
dj.js
dj.min.js
ender.js
package.json

README.md

dj

Remixable hook/bridge/relay API designed for writing highly-extendable modular JavaScript.

CDN: dev | min

npm install dj

Docs are comin' soon. The source is already documented.

overview

dj.hook(key, value) // set or get hooks
dj.hook.remix() // create a new `hook()` function tied to a clean hash
dj.resample(object, opt_parent); // quasi deep clone ( or dj.resample() )
dj.nu(parent); // cross-browser Object.create(parent)
dj.pro(o); // cross-browser Object.getPrototypeOf(o)
dj.expand(receiver, supplier, opt_force, opt_check); // multipurpose augmenter/extender
dj.mixin(supplier, opt_force, opt_check); // augment `dj` w/ `supplier`'s props
dj.owns(key); // ~ dj.hasOwnProperty(key) (direct native reference)
dj.bridge(receiver, opt_force, opt_api) // integrate `dj` into `receiver` (module agnostic)
dj.submix(subModule, opt_force) // integrate `subModule` into `dj` (module agnostic)
Something went wrong with that request. Please try again.