Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cm-chess

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cm-chess

It's like chess.js, but in ES6 and can handle variations (tree-structured move history)

  • 3.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
151
increased by26.89%
Maintainers
1
Weekly downloads
 
Created
Source

cm-chess

It is like chess.js (and is based on an older version of chess.js), but can handle history variations (tree-structured move history), PGN header values, Nags and Comments.

Install

npm install cm-chess

Features

  • It has a similar API to chess.js
  • It can handle history variations
  • It can add Nags, Comments and Annotations
  • It is used by the 7,000 users of chessmail (it works)

API

For documentation, see the jsdoc annotations in Chess.js.

cm-chess uses cm-pgn for the header and history, therefore you have also the full API of cm-pgn.

If I have some time, I will write a better documentation here in this README. :)

Examples

See the unit tests for usage examples https://github.com/shaack/cm-chess/blob/master/test/TestChess.js

And also the unit tests of cm-pgn https://github.com/shaack/cm-pgn/tree/master/test

Test

Run the unit tests

Keywords

FAQs

Package last updated on 07 May 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc