industry-functions
Adds a `functions` method to [Industry](https://github.com/invrs/industry) factory instances that returns all instance and class functions.
Last updated 5 years ago by winton .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install industry-functions 
SYNC missed versions from official npm registry.

IndustryFunctions Build Status

Retrieve factory instance and class methods.

Usage

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] }

Current Tags

  • 0.4.0                                ...           latest (4 years ago)

14 Versions

  • 0.4.0                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.4                                ...           4 years ago
  • 0.2.3                                ...           4 years ago
  • 0.2.2                                ...           4 years ago
  • 0.2.1                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           5 years ago
  • 0.0.5                                ...           5 years ago
  • 0.0.3                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |