An open API service indexing awesome lists of open source software.

https://github.com/invrs/industry-include

Provides a dependency tree object to your method parameters
https://github.com/invrs/industry-include

Last synced: about 2 months ago
JSON representation

Provides a dependency tree object to your method parameters

Awesome Lists containing this project

README

          

# IndustryInclude [![Build Status](https://travis-ci.org/invrs/industry-include.svg?branch=master)](https://travis-ci.org/invrs/industry-include)

Provides a dependency tree object to your method parameters.

## Usage

Given you have `files/files.test.js` at `${__dirname}`:

```js
import { factory } from "industry"
import { instance } from "industry-instance"
import { include } from "industry-include"
import { standard_io } from "industry-standard-io"

class Test {
constructor() {
this.include(`${__dirname}`)
}

hello({ include: { files: { test } } }) {
test // import test from `${__dirname}/files/files.test.js`
}
}

let test = factory(Test)
.set("instance", instance)
.set("include", include)
.set("standard_io", standard_io)

test().hello()
```