UNPKG

461 BPlain TextView Raw
1// tslint:disable:no-console
2
3import {PluginManager} from "../index";
4
5const manager = new PluginManager();
6
7async function run() {
8 await manager.install("moment");
9 await manager.install("lodash", "4.17.4");
10
11 const _ = manager.require("lodash");
12 console.log(_.defaults({ a: 1 }, { a: 3, b: 2 }));
13
14 const moment = manager.require("moment");
15 console.log(moment().format());
16
17 await manager.uninstall("moment");
18 await manager.uninstall("lodash");
19}
20
21run();