# industry-functions

> Retrieve factory instance and class methods.

Latest version **0.4.0** (published 2016-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install industry-functions
pnpm add industry-functions
yarn add industry-functions
bun add industry-functions
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2016-06-11 |
| First published | 2016-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Winton Welsh |
| Maintainers | winton |

## Links

- npm: https://www.npmjs.com/package/industry-functions
- Repository: https://github.com/invrs/industry-functions
- Homepage: https://github.com/invrs/industry-functions#readme
- Issues: https://github.com/invrs/industry-functions/issues
- npm.io page: https://npm.io/package/industry-functions

## Dependencies (1)

- [babel-runtime](https://npm.io/package/babel-runtime.md) *

## Recent versions

- 0.4.0 (latest) — 2016-06-11
- 0.3.0 — 2016-06-11
- 0.2.4 — 2016-05-30
- 0.2.3 — 2016-05-30
- 0.2.2 — 2016-05-30
- 0.2.1 — 2016-04-08
- 0.2.0 — 2016-04-07
- 0.1.0 — 2016-04-05
- 0.0.7 — 2016-03-28
- 0.0.6 — 2016-03-22
- 0.0.5 — 2016-03-07
- 0.0.3 — 2016-03-07
- 0.0.2 — 2016-02-22
- 0.0.1 — 2016-02-22

## README

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

Retrieve factory instance and class methods.

## Usage

```js
import { factory } from "industry"
import { instance } from "industry-instance"
import { functions } from "industry-functions"

class Test {
  hello() {}
  static world() {}
}

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

test().functions()             // { 'hello' => [Function: hello] }
test().constructor.functions() // { 'world' => [Function: world] }
```

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