New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

godash

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

godash

Data structures and utilities to represent the game of Go

latest
Source
npmnpm
Version
2.5.3
Version published
Weekly downloads
110
378.26%
Maintainers
1
Weekly downloads
 
Created
Source

npm CI

Data structures and utilities to represent the game of Go.

This library depends on Immutable.js and lodash.

Getting Started

Install godash via npm.

npm install godash

require and use it in your modules.

var godash = require('godash');
var board = godash.Board(19);
var tengen = godash.Coordinate(9, 9); // 0-based

board.moves.has(tengen); // false

var standardOpening = placeStone(
    board,
    tengen,
    godash.BLACK
);
standardOpening.moves.has(tengen); // true

Why Godash?

Godash provides the "primitives" for Go necessary for creating UIs that go beyond a simple SGF player. You can create whatever UI you want without having to reinvent the wheel every time.

Check out the documentation to see what Godash provides.

Breaking changes from version 1 to 2

  • Due to upgrading to immutable@4, Board and Coordinate are no longer subclasses of Seq.
  • Board constructor changed to take Move.

Version 2.5.0 - Immutable v5 upgrade

  • Upgraded to immutable@5 with no breaking changes to the Godash API.
  • All existing code remains compatible - no changes required.

Keywords

go

FAQs

Package last updated on 29 Dec 2025

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