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.
easter-break
Advanced tools
Readme
onClick function
with canvas destroying current pagenpm i easter-break
or
yarn add easter-break
Note: Button is fully customizable because this package it's just onClick function with Canvas support
// EasterBreaker.tsx
import easterBreaker from "easter-break";
const EasterBraker = () => {
return (
<button onClick={easterBreaker}>Break me </button>
);
};
export default EasterBraker
// App.tsx
import EasterBreaker from './EasterBreaker'
function App() {
return (
<div className="App">
...
<EasterBreaker/>
...
</div>
Full example - https://github.com/Ivan-Corporation/Easter-break/tree/master/examples/react
// EasterBreaker.vue
<template>
<div class="button" @click="destroy" >
Break me
</div>
</template>
<script >
import easterBreaker from 'easter-break'
export default {
name: 'easter-breaker',
methods: {
destroy(){
easterBreaker();
}
}
}
</script>
// HelloWorld.vue
<template>
...
<button>
<easter-breaker/>
</button>
...
</template>
<script>
import EasterBreaker from './EasterBreaker.vue'
...
</script>
Full example - https://github.com/Ivan-Corporation/Easter-break/tree/master/examples/vue
// JS file
import easterBreaker from "easter-break";
document.getElementById("dangerous-button")
.addEventListener("click", () => easterBreaker());
// HTML File
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="button.css">
<script src="index.js"></script>
</head>
<body>
<button id="dangerous-button"></button>
</body>
</html>
"start": "GENERATE_SOURCEMAP=false react-scripts start",
You need to enable JavaScript to run this app. In the left-up corner
Just delete text from your index.html
here:
<noscript>You need to enable JavaScript to run this app.</noscript>
Note: it's only for some kind of boilerplate
FAQs
Ideal package for some easter egg in your site. He just give you onClick function with canvas destroying current page
The npm package easter-break receives a total of 4 weekly downloads. As such, easter-break popularity was classified as not popular.
We found that easter-break 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.