Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including dj with all npm packages installed. Try it out:

var dj = require("dj")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

dj v0.10.0

remixable JavaScript

dj

remixable API designed to write extensible modular JavaScript

$ npm install dj

API (0.x)

0.x versions are experimental. See the source for more details.

Methods

  • dj.hook(key, value) set or get hooks
  • dj.hook.remix() create a new hook() function tied to a clean hash
  • 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) alias for dj.hasOwnProperty(key)
  • dj.bridge(receiver, opt_force, opt_api) integrate dj into receiver
  • dj.submix(subModule, opt_force) integrate subModule into dj

@deprecated

Replace deprecated 0.7- inheritance methods with blood

  • Replace dj.nu with blood.create
  • Replace dj.pro with blood.line
  • Replace dj.resample with blood.twin

License: MIT

Copyright (C) 2012 by Ryan Van Etten

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free