Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.08 KB

README.md

File metadata and controls

59 lines (43 loc) · 1.08 KB

khmer-chess-board.js

Khmer Chess Javascript library to simulate chess board

Build with

khmer-chess

k4us-share

Screen Shot 2021-02-27 at 5.49.22 PM (KhmerChessBoard 1.0.13):

alt text

Importing

  • npm i -D khmer-chess-board

Importing

import { KhmerChessBoard } from 'khmer-chess-board';
// React
import { KhmerChessBoardComp } from 'khmer-chess-board';
const { KhmerChessBoard } = require('khmer-chess-board');
// React
const { KhmerChessBoardComp } = require('khmer-chess-board');
  • Web:
<script src="khmer-chess-board/dist/khmer-chess-board.bundle.js"></script>
<script>
    console.log(KhmerChessBoard.version);
    // React
    console.log(KhmerChessBoardComp.version);
</script>

Run

> npm i
> npm start

Build

> npm i
> npm run build

Licence

MIT