Kurumi
if you think that Kurumi
can help you,please star
or follow
to support me! 😘
Introduction
- Install npm dependencies that run directly in the browser. No Browserify, Webpack or import maps required.
- Imports source code URLs(it must support
UMD
)! most of all, It don't affect global variable as same as webpack
You can use await
const myLodash = await Kurumi('lodash', 'https://unpkg.com/lodash@4.17.11/lodash.min.js');
console.log(myLodash.template(`Wow! so cool! <%= name %>`)({ name: 'Kurumi!!!' }));
console.log(lodash)
or
.then
Kurumi('lodash','https://unpkg.com/lodash@4.17.11/lodash.min.js')
.then((lodash) => {
console.log(lodash.template(`Wow! so cool! <%= name %>`)({ name: 'Kurumi!!!' }));
})
- No more
node_modules
, no dependency to install.
Install
npm install kurumi
Usage
Webpack
import Kurumi from 'kurumi';
Kurumi('lodash', 'https://unpkg.com/lodash@4.17.11/lodash.min.js')
.then((lodash) => {
console.log(lodash.template(`Wow! so cool! <%= name %>`)({ name: 'Kurumi!!!' }));
})
Browser
<script src="https://unpkg.com/kurumi/lib/Kurumi.min.js"></script>
<script>
Kurumi('lodash', 'https://unpkg.com/lodash@4.17.11/lodash.min.js')
.then((lodash) => {
console.log(lodash.template(`Wow! so cool! <%= name %>`)({ name: 'Kurumi!!!' }));
})
</script>
FAQ
Why is it called Kurumi?
Kurumi
Tokisaki (時崎 狂三ときさき くるみ, Tokisaki Kurumii?) is the third Spirit to appear. Due to her brutal actions, she is referred to as the Worst Spirit (最悪の精霊, Saiaku no Seirei?). She is also the first Spirit to appear as an antagonist in the Date A Live series.
—— From Date A Live
Contributing
Welcome to pr
!
Others
inspired By import-http! thx!