Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@bgoodman/minesweeper-game
Advanced tools
The popular game 'minesweeper' made available as a custom element.
The popular game 'minesweeper' made available as a custom element.
yarn add @bgoodman/minesweeper-game
npm install @bgoodman/minesweeper-game
<!DOCTYPE html>
<html>
<head>
<title>Minesweeper</title>
<script type="module" src="./dist/index.js"></script>
</head>
<body>
<minesweeper-game width=5 height=10></minesweeper-game>
</body>
</html>
width
(number)The width (in cells) of the game grid.
height
(number)The height (in cells) of the game grid.
mines
(number)Override the default amount of mines placed in the game. Otherwise calculated as Math.floor(Math.sqrt(height * width))
.
scale
(number)Override the game's default scale in multiples of 1
. Values less(greater) than 1
will result in a smaller(larger) width and height of the game grid. Default scale (1
) renders each cell in the game grid as 30px
x 30px
.
newGame(): void
Resets the current game using existing values of width
, height
and (optionally) mines
.
FAQs
The popular game 'minesweeper' made available as a custom element.
We found that @bgoodman/minesweeper-game 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.