Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanve/dj
JavaScript module integration API
https://github.com/ryanve/dj
hooks javascript
Last synced: about 1 month ago
JSON representation
JavaScript module integration API
- Host: GitHub
- URL: https://github.com/ryanve/dj
- Owner: ryanve
- License: mit
- Created: 2012-09-03T03:58:50.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2022-03-02T03:47:28.000Z (over 2 years ago)
- Last Synced: 2024-05-02T00:08:38.001Z (7 months ago)
- Topics: hooks, javascript
- Language: JavaScript
- Homepage: https://www.npmjs.org/package/dj
- Size: 42 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# [dj](../../)
#### remixable API designed to write extensible modular JavaScript
```sh
$ npm install dj
```## API ([0.x](../../releases))
0.x versions are **experimental**. See the [source](dj.js) 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](../../tree/0.7.4)- inheritance methods with [blood](http://github.com/ryanve/blood)
- Replace `dj.nu` with `blood.create`
- Replace `dj.pro` with `blood.line`
- Replace `dj.resample` with `blood.twin`## License: [MIT](http://en.wikipedia.org/wiki/MIT_License)
Copyright (C) 2012 by [Ryan Van Etten](https://github.com/ryanve)