Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
kurumi
Advanced tools
Readme
if you think that
Kurumi
can help you,pleasestar
orfollow
to support me! 😘
UMD
)! most of all, It don't affect global variable as same as webpack
const kurumi = new Kurumi({
modules: {
'lodash': 'https://unpkg.com/lodash@4.17.11/lodash.min.js'
}
});
await kurumi.install();
const myLodash = kurumi.get('lodash');
console.log(myLodash.template(`Wow! so cool! <%= name %>`)({ name: 'Kurumi!!!' })); // Wow! so cool! Kurumi!!!
console.log(lodash) // undefined
node_modules
, no dependency to install.npm install kurumi
use kurumi in React, Onlie Demo;
<script src="https://unpkg.com/kurumi/lib/Kurumi.min.js"></script>
<script>
(async () => {
const kurumi = new Kurumi({
modules: {
'lodash': 'https://unpkg.com/lodash@4.17.11/lodash.min.js'
}
});
await kurumi.install();
const myLodash = kurumi.get('lodash');
console.log(myLodash.template(`Wow! so cool! <%= name %>`)({ name: 'Kurumi!!!' })); // Wow! so cool! Kurumi!!!
})();
</script>
modules
- required - key: package name, value: package urlorder
- optional - the execution order of package
eg: the peerdependence of react-dom is react, order is ['react', 'react-dom'];
default: Object.keys(opt.module)
;threadNum
- the maxium of xhr request, deafalt: 5
const kurumi = new Kurumi(...);
kurumi.setThreadNum(1);
kurumi.install();
const kurumi = new Kurumi({
modules: {
'react': 'https://unpkg.com/react@16.8.4/umd/react.production.min.js',
'react-dom': 'https://unpkg.com/react-dom@16.8.4/umd/react-dom.production.min.js'
}
});
kurumi.install();
kurumi.get('react').createElement('div', {}, 'this is a div!');
const kurumi = new Kurumi(...);
kurumi.setThreadNum(1);
kurumi.install();
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
Welcome to pr
!
inspired By import-http! thx!
FAQs
import modules from URL and not affect gloabl varibale
The npm package kurumi receives a total of 1 weekly downloads. As such, kurumi popularity was classified as not popular.
We found that kurumi demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.