Elvan:TS JS外部模块加载器(支持React Native!)

时间:2024-05-30 09:45:51
【文件属性】:

文件名称:Elvan:TS JS外部模块加载器(支持React Native!)

文件大小:728KB

文件格式:ZIP

更新时间:2024-05-30 09:45:51

TypeScript

埃尔文(Elvan) TS / JS外部模块加载器 从外部URL加载模块 在TS / JS应用程序(包括React Native应用程序)中加载外部模块。 定义模块 // fish-feeder.js exports = ( { food } ) => { return { feedFish : ( ) => console . log ( `You fed the fish ${ food } !` ) } } 加载模块 // URL to the Module const url = "https://my.site/fish-feeder.js" ; // Module Imports const imports = { food : "tasty speckles" } // Load the Module const FishFeeder = awai


【文件预览】:
Elvan-master
----.gitignore(357B)
----tsconfig.json(323B)
----README.md(3KB)
----.gitmodules(0B)
----test()
--------FishFeeder.js(93B)
--------HelloBox.js(371B)
--------elvan.test.ts(578B)
----LICENSE(1KB)
----package.json(812B)
----tslint.json(2KB)
----src()
--------index.ts(110B)
--------elvan.ts(950B)
----jest.config.js(286B)
----.npmignore(447B)
----yarn.lock(13KB)
----assets()
--------Lenny.jpg(263KB)
--------Halia Cover.png(82KB)
--------Doug.png(421KB)
----package-lock.json(22KB)

网友评论