
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
react-slot-machine-gen
Advanced tools
Create an extremely biased, web-based slot machine game.

<canvas>)Checkout the demo for examples of use.
Add to an existing React project using YARN.
$ yarn add react-slot-machine-gen
import React from 'react';
import SlotMachine from 'react-slot-machine-gen'; // or '../dist/react-slot-machine';
const reels = [
{
imageSrc: 'path/to/image.png',
symbols: [
{
title: 'cherry',
position: 100,
weight: 2
},
{
title: 'plum',
position: 300,
weight: 6
},
{
title: 'orange',
position: 500,
weight: 5
},
{
title: 'bell',
position: 700,
weight: 1
},
{
title: 'cherry',
position: 900,
weight: 3
},
{
title: 'plum',
position: 1100,
weight: 5
}
}
},
// add more reels ...
];
export default class Demo extends React.Component {
constructor() {
super();
this.state = {
play: false
};
}
playEvent() {
this.setState({
play: !this.state.play
});
}
render() {
return (
<React.Fragment>
<SlotMachine reels={reels} play={this.state.play} />
<button id="play-button" onClick={() => this.playEvent()}>Play</button>
</React.Fragment>
);
}
};
| Name | Type | Description |
|---|---|---|
| reels | Array | Symbols configuration. |
| play | Boolean | Spins the reels if true |
| callback | Function | Returns winning symbols. |
| options | Object | Override game defaults. |
Run ESLint on project sources:
$ npm run lint
Transpile ES6 sources (using Babel) and minify to a distribution:
$ npm run build
Bundle demo sources (using Webpack):
$ npm run webpack
If you fix a bug, or have a code you want to contribute, please send a pull-request with your changes. (Note: Before committing your code please ensure that you are following the Node.js style guide)
This package is maintained under the Semantic Versioning guidelines.
This package is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
react-slot-machine-gen is provided under the terms of the MIT license
FAQs
Create an extremely biased, web-based slot machine game.
The npm package react-slot-machine-gen receives a total of 95 weekly downloads. As such, react-slot-machine-gen popularity was classified as not popular.
We found that react-slot-machine-gen 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.