getapp

0.3.0 • Public • Published

getapp

获取指定位置的子模块

Install

npm i getapp --save

Usage

const getapp = require('getapp')
// Apps所在的目录
getapp.config.set('cwd', url)
// Apps注册的父级宿主
getapp.config.set('system', system)
 
// 1. 获取单个app
getapp.get(name).reg()
 
// 2. 批量获取所有app
getapp.getAll().forEach(app => app.reg())

Class

const Getapp = getapp.Getapp

Readme

Keywords

Package Sidebar

Install

npm i getapp

Weekly Downloads

1

Version

0.3.0

License

MIT

Last publish

Collaborators

  • gavinning