industry-include

1.2.0 • Public • Published

IndustryInclude Build Status

Provides a dependency tree object to your method parameters.

Usage

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

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()

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.02latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.02
1.1.01
1.0.21
1.0.11
1.0.01
0.2.12
0.2.01
0.1.11
0.1.01
0.0.101
0.0.91
0.0.81
0.0.72
0.0.61
0.0.51
0.0.21

Package Sidebar

Install

npm i industry-include

Weekly Downloads

19

Version

1.2.0

License

MIT

Last publish

Collaborators

  • winton