Skip to content

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

lark-autoloader

A module autoloader for lark apps


const autoloader = new AutoLoader();
await autoloader.load('lib');
const $ = autoloader.target;

$.lib.Utils.toolA(); // equals to require('approot/lib/Utils').toolA;

Customize

const autoloader = new Autoloader(container, (filePath, keys) => {
    container[keys.join('/')] = filePath;
});
await autoloader.load('xxx');

About

An module autoloader for lark apps

Resources

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages