Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
easter-break
Advanced tools
Ideal package for some easter egg in your site. He just give you onClick function with canvas destroying current page
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 5 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.