# derby-subcomponents

> Derby plugin for easily adding subcomponents without access to app

Latest version **1.0.7** (published 2016-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install derby-subcomponents
pnpm add derby-subcomponents
yarn add derby-subcomponents
bun add derby-subcomponents
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2016-01-14 |
| First published | 2015-06-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | cjblomqvist |
| Maintainers | cjblomqvist |
| Keywords | derby, plugin |

## Links

- npm: https://www.npmjs.com/package/derby-subcomponents
- Repository: https://github.com/BBWeb/derby-subcomponents
- Issues: https://github.com/BBWeb/derby-subcomponents/issues
- npm.io page: https://npm.io/package/derby-subcomponents

## Dependencies (1)

- [racer](https://npm.io/package/racer.md) >=0.7.0 <0.9

## Recent versions

- 1.0.7 (latest) — 2016-01-14
- 1.0.6 — 2016-01-11
- 1.0.5 — 2016-01-05
- 1.0.4 — 2015-12-04
- 1.0.3 — 2015-11-13
- 1.0.2 — 2015-06-09
- 1.0.1 — 2015-06-08
- 1.0.0 — 2015-06-08

## README

# derby-subcomponents
Derby plugin for easily adding subcomponents without access to app

How to use
==========
Adds the possibility to add a subcomponents on your Component prototype - i.e. without access to app. E.g.

```javascript
// When this component is loaded through app.component('./mycomponent/index.js'), the subcomponent will automatically be loaded namespaced to the maincomponents name (and possible namespace), i.e. you will have two components loaded (from below component):
// maincomponent
// maincomponent:subcomponent
function MyComponent () {}

MyComponent.prototype.name = 'maincomponent'
MyComponent.prototype.components = [require('subcomponent')]
```

---
_Source: https://npm.io/package/derby-subcomponents · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
