Socket
Socket
Sign inDemoInstall

kurumi

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kurumi

import modules from URL and not affect gloabl varibale


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Kurumi

travis ci badge version license downloads downloads-month

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!!!' })); // Wow! so cool! Kurumi!!!
console.log(lodash) // undefined

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!

Keywords

FAQs

Last updated on 01 Mar 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc