# chessboard-ts

> chessboardjs in typescript

Latest version **2.1.0** (published 2022-12-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install chessboard-ts
pnpm add chessboard-ts
yarn add chessboard-ts
bun add chessboard-ts
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2022-12-20 |
| First published | 2022-11-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 145.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zingfeng |

## Links

- npm: https://www.npmjs.com/package/chessboard-ts
- Repository: git@github-zf:zingfeng/chessboard-ts
- npm.io page: https://npm.io/package/chessboard-ts

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) ^3.6.1

## Recent versions

- 2.1.0 (latest) — 2022-12-20
- 2.0.0 — 2022-12-20
- 1.3.0 — 2022-12-19
- 1.2.0 — 2022-11-14
- 1.1.4 — 2022-11-14
- 1.1.2 — 2022-11-14
- 1.1.1 — 2022-11-14
- 1.1.0 — 2022-11-14
- 1.0.0 — 2022-11-10

## README

# chessboard-ts

Typescript for https://chessboardjs.com/



## How to install

```
npm i chessboard-ts
```



## How to use

```
import ChessBoard from "./chessboard";

document.addEventListener("DOMContentLoaded", function (event) {
  console.log("DOM fully loaded");
  const chessboard = new ChessBoard({
    selector: "myBoard",
    config: {
      position: "start",
      draggable: true,
    },
  });
});

```



### How to test 

```
npm test
or
npx webpack --config webpack.config.test.js
```

Open **test\index.html** to see result


### How to publish next version (for me)

Change version in pakage.json. Read pakage.json for config of npm

```
npm publish
```

---
_Source: https://npm.io/package/chessboard-ts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
