文件名称:injectable.js
文件大小:66KB
文件格式:ZIP
更新时间:2024-06-08 00:39:44
JavaScript
injectable.js 可扩展的IoC容器 安装 yarn install injectable.js npm install injectable.js 用法 import { createCore , injectable } from 'injectable.js' const core = createCore ( ) const add = injectable ( ) ( ( { } , { a , b } ) => a + b ) const divide = injectable ( ) ( ( { } , { a , b } ) => a / b ) const average = injectable ( { injects : [ 'add' , 'divide' ] } ) ( ( { add , divide } , { a , b } ) =>
【文件预览】:
injectable.js-master
----packages()
--------injectable-plugin-perRequest()
--------injectable-core()
----.travis.yml(163B)
----LICENSE(1KB)
----lerna.json(107B)
----README.md(871B)
----.gitignore(961B)
----package.json(360B)