
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
chesstournament-swt-support
Advanced tools
Import Swiss-Chess Tournament (SWT) files into chesstournament.js
Plugin for chesstournament.js to import Swiss-Chess Tournament (SWT) files.
Currently this module provides only an import plugin. An export plugin is intended.
All you have to do is register this module as an import plugin in your chesstournament.js instance:
var Tournament = require('chesstournament');
Tournament.from.use(require('chesstournament-SWT-support'));
Then Swiss-Chess Tournament files can be imported by simply call
Tournament.from('/path/to/your.SWT', function handleTournament(err, tnmt) {
// do what you want
});
It's also possible to use this module to simply convert information chunks given as an object which swtparser returned:
// convert a single Player
var convertPlayer = require('chesstournament-SWT-support/lib/import/player');
var playerJSON = {
2000: 'Falco Nogatz',
2008: '1990 '
};
var player = convertPlayer(playerJSON);
console.log(player instanceof Tournament.Player);
// convert multiple Players
var convertPlayers = require('chesstournament-SWT-support/lib/import/players');
var players = [playerJSON]; // result.players of swtparser result
var playersList = convertPlayers(players);
console.log(playersList instanceof Tournament.PlayersList);
// for more convert functions see files in lib/import
FAQs
Import Swiss-Chess Tournament (SWT) files into chesstournament.js
The npm package chesstournament-swt-support receives a total of 2 weekly downloads. As such, chesstournament-swt-support popularity was classified as not popular.
We found that chesstournament-swt-support 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.