process-controller
pkg.module supported
, which means that you can apply tree-shaking in you project
A process controller base on promise that can be used in both browser and node
repository
git@github.com:livelybone/process-controller.git
Demo
https://github.com:livelybone/process-controller#readme
Run Example
Your can see the usage by run the example of the module, here is the step:
- Clone the library
git clone git@github.com:livelybone/process-controller.git
- Go to the directory
cd your-module-directory
- Install npm dependencies
npm i
(use taobao registry:npm i --registry=http://registry.npm.taobao.org
) - Open service
npm run dev
- See the example(usually is
http://127.0.0.1/examples/test.html
) in your browser
Installation
npm i -S process-controller
umd
bundle
Global name - The variable the module exported in ProcessController
Interface
See what method or params you can use in index.d.ts
Usage
// Simple example: Auto run// modal1 will show after modal2 clicked to confirmconst controller = true controller controller
Use in html, see what your can use in CDN: unpkg