
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign hits npm.
mahjong-seatings-rs-node
Advanced tools
Small wrapper around [mahjong-seatings-rust](https://github.com/MahjongPantheon/mahjong-seatings-rust) to compile it to wasm, node version.
Small wrapper around mahjong-seatings-rust to compile it to wasm, node version.
npm install mahjong-seatings-rs-nodeconst {make_seating_shuffled, make_seating_interval, make_seating_swiss} = require("mahjong-seatings-rs-node");
console.log('Shuffled seating', make_seating_shuffled({
playersMap: {
'1': 1500,
'2': 1500,
'3': 1500,
'4': 1500,
'5': 1500,
'6': 1500,
'7': 1500,
'8': 1500,
},
previousSeatings: [
[1, 2, 3, 4],
[5, 6, 7, 8],
],
groupsCount: 1,
randFactor: 1234455,
}));
console.log('Interval seating', make_seating_interval({
playersMap: {
'1': 1510,
'2': 1508,
'3': 1506,
'4': 1504,
'5': 1496,
'6': 1494,
'7': 1492,
'8': 1490,
},
step: 2,
randFactor: 1234455,
}));
console.log('Swiss seating', make_seating_swiss({
playersMap: {
'1': 1510,
'2': 1508,
'3': 1506,
'4': 1504,
'5': 1496,
'6': 1494,
'7': 1492,
'8': 1490,
},
previousSeatings: [
[1, 2, 3, 4],
[5, 6, 7, 8],
],
randFactor: 1234455,
}));
Note that returned lists contain player ids and their rating. First four elements are first table, next four are second table, etc.## Riichi-rs-node
FAQs
Small wrapper around [mahjong-seatings-rust](https://github.com/MahjongPantheon/mahjong-seatings-rust) to compile it to wasm, node version.
We found that mahjong-seatings-rs-node 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
/Security News
Another wave of Shai-Hulud campaign hits npm.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.