
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
loadease-v2
Advanced tools
LoadEase is a lightweight and customizable package for displaying beautiful loading spinners, skeleton screens, and full-page loaders in React.js, Next.js, Vue.js, Nuxt.js, Laravel, and vanilla JavaScript apps.
import React from "react";
import { LoaderSpinner } from "loadease-v2";
function App() {
return (
<div>
<h1>My App</h1>
<LoaderSpinner color="#14AE88" size={40} speed={800} />
</div>
);
}
<template>
<div>
<h1>My Vue App</h1>
<LoaderSpinner :color="'#14AE88'" :size="40" :speed="800" />
</div>
</template>
<script>
import { LoaderSpinner } from "loadease-v2";
export default {
components: { LoaderSpinner },
};
</script>
<!-- resources/views/welcome.blade.php -->
<div id="app">
<h1>Laravel Loader Example</h1>
<div id="loader"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/loadease-v2/dist/index.umd.js"></script>
<script>
const loader = LoadEase.LoaderSpinner({
color: "#14AE88",
size: 40,
speed: 1000,
});
document.getElementById("loader").appendChild(loader);
</script>
<div id="loader-container"></div>
<script src="https://cdn.jsdelivr.net/npm/loadease-v2/dist/index.umd.js"></script>
<script>
const loader = LoadEase.LoaderSpinner({
color: "#3490dc",
size: 50,
});
document.getElementById("loader-container").appendChild(loader);
</script>
import { LoaderSpinner } from "loadease-v2";
export default function TailwindApp() {
return (
<div className="flex items-center justify-center min-h-screen bg-gray-100">
<LoaderSpinner color="#14AE88" size={60} />
</div>
);
}
<div class="d-flex justify-content-center align-items-center" style="height: 100vh;">
<div id="bootstrap-loader"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/loadease-v2/dist/index.umd.js"></script>
<script>
const loader = LoadEase.LoaderSpinner({ color: "#0d6efd", size: 50 });
document.getElementById("bootstrap-loader").appendChild(loader);
</script>
fetch
APIimport React, { useEffect, useState } from "react";
import { LoaderSpinner } from "loadease-v2";
function FetchExample() {
const [loading, setLoading] = useState(true);
const [data, setData] = useState(null);
useEffect(() => {
fetch("https://jsonplaceholder.typicode.com/posts/1")
.then(res => res.json())
.then(json => {
setData(json);
setLoading(false);
});
}, []);
return (
<div>
{loading ? (
<LoaderSpinner color="#14AE88" size={40} />
) : (
<pre>{JSON.stringify(data, null, 2)}</pre>
)}
</div>
);
}
import React, { useEffect, useState } from "react";
import axios from "axios";
import { LoaderSpinner } from "loadease-v2";
function AxiosExample() {
const [loading, setLoading] = useState(true);
const [post, setPost] = useState(null);
useEffect(() => {
axios.get("https://jsonplaceholder.typicode.com/posts/1").then(res => {
setPost(res.data);
setLoading(false);
});
}, []);
return (
<div>
{loading ? <LoaderSpinner size={40} color="#14AE88" /> : <p>{post.title}</p>}
</div>
);
}
<script src="https://cdn.jsdelivr.net/npm/loadease-v2/dist/index.umd.js"></script>
<div id="loader"></div>
<script>
const loader = LoadEase.LoaderSpinner({ color: "#14AE88", size: 50 });
document.getElementById("loader").appendChild(loader);
</script>
import React, { useState } from "react";
import { LoaderSpinner } from "loadease-v2";
const TSComponent: React.FC = () => {
const [loading, setLoading] = useState<boolean>(true);
return (
<div>
{loading ? (
<LoaderSpinner size={40} color="#14AE88" speed={1000} />
) : (
<p>Loaded!</p>
)}
</div>
);
};
export default TSComponent;
Install using npm or yarn:
npm install loadease-v2
# or
yarn add loadease-v2
FAQs
A customizable loading component for React
The npm package loadease-v2 receives a total of 8 weekly downloads. As such, loadease-v2 popularity was classified as not popular.
We found that loadease-v2 demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last weekโs supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.