Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
a small and dependecy free js library to hide easter eggs on your website. You can use it to hide secret cheatcodes and it also includes a small utility to echo keys.
npm install cheatz
then either use the dist/
files as cjs
or the src
files in type="module"
like so:
<script type="module">
import Cheatz from './Cheatz.js';
import Keyecho from './Keyecho.js';
let keyEcho = null;
addEventListener("DOMContentLoaded", () => {
keyEcho = new Keyecho("body");
new Cheatz("body", "i d d q d", function () {
alternatively you can use the statically hosted lib on surge including it like so:
<script src="https://cheatz.surge.sh/cheatz.js"></script>
<script src="https://cheatz.surge.sh/keyecho.js"></script>
Then you can set the Cheat Codes like so: Cheatz
addEventListener("DOMContentLoaded", () => {
// Konami code
new Cheatz("body", "UP UP DOWN DOWN LEFT RIGHT LEFT RIGHT A B", function () { /* DO SOMETHING */});
});
You can customise also other key codes passing it as 4th parameter of new Cheatz()
.
constructor(mountPoint, sequence, callback, additionalMap = {})
the default ones are those, I am using the event.key
value, defined in here.
const keyMaps = {
"UP": "ArrowUp",
"DOWN": "ArrowDown",
"LEFT": "ArrowLeft",
"RIGHT": "ArrowRight",
"ENTER": "Enter",
"TAB": "Tab",
"CTRL": "Control",
"ALT": "Alt",
"SUPER": "Meta"
};
Keyecho
let keyEcho = null;
addEventListener("DOMContentLoaded", () => {
keyEcho = new Keyecho("body");
});
This will listen to every key press and echo them at the bottom right of the page.
FAQs
a small js library to hide easter eggs on your website.
The npm package cheatz receives a total of 6 weekly downloads. As such, cheatz popularity was classified as not popular.
We found that cheatz 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.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.