industry-standard-io

0.9.0 • Public • Published

IndustryStandardIO Build Status

Adds StandardIO compliance to factory methods.

Requirements

This extension must be paired with Functions.

Usage

import { factory } from "industry"
import { instance } from "industry-instance"
import { functions } from "industry-functions"
import { standard_io } from "industry-standard-io"
 
class Test {
  hello(args) {
    args // { a: 1, b: 2, args: { a: 1, b: 2 }, _args: [ "world" ] }
    return true
  }
}
 
let test = factory(Test)
  .set("instance", instance)
  .set("functions", functions)
  .set("standard_io", standard_io)
 
test().hello("world", { a: 1 }, { b: 2 }).then((value) => {
  value // true
})

Readme

Keywords

none

Package Sidebar

Install

npm i industry-standard-io

Weekly Downloads

2

Version

0.9.0

License

MIT

Last publish

Collaborators

  • winton