Kurumi
if you think that Kurumi
can help you,please star
or follow
to support me! 😘
Introduction
- 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('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('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
Node
const Kurumi = require('kurumi');
Kurumi('https://unpkg.com/lodash@4.17.11/lodash.min.js')
.then((lodash) => {
console.log(lodash.template(`Wow! so cool! <%= name %>`)({ name: 'Kurumi!!!' }));
})
Webpack
import Kurumi from 'kurumi';
Kurumi('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/Kurumi.min.js">
<script>
Kurumi('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
!
Othhers
inspired By import-http! thx!