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

chess-rules

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chess-rules - npm Package Compare versions

Comparing version 0.10.1 to 0.10.2

11

package.json
{
"name": "chess-rules",
"version": "0.10.1",
"version": "0.10.2",
"description": "Chess Rules implementation as a standalone module.",

@@ -24,5 +24,7 @@ "homepage": "https://github.com/chesscorp/chess-rules",

"main": "./src",
"dependencies": {},
"dependencies": {
"colors": "^1.1.2",
"underscore-plus": "^1.6.6"
},
"devDependencies": {
"colors": "^1.1.2",
"grunt": "^0.4.0",

@@ -41,4 +43,3 @@ "grunt-browserify": "^4.0.0",

"mocha": "^2.2.5",
"time-grunt": "^1.1.0",
"underscore-plus": "^1.6.6"
"time-grunt": "^1.1.0"
},

@@ -45,0 +46,0 @@ "scripts": {

@@ -1,7 +0,7 @@

# [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status](https://coveralls.io/repos/ChessCorp/chess-rules/badge.svg?branch=master&service=github)](https://coveralls.io/github/ChessCorp/chess-rules?branch=master)
[![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage Status](https://coveralls.io/repos/ChessCorp/chess-rules/badge.svg?branch=master&service=github)](https://coveralls.io/github/ChessCorp/chess-rules?branch=master)
> Chess Rules implementation as a standalone module.
Chess Rules implementation as a standalone module.
## Install
## Install as node bundle

@@ -12,17 +12,35 @@ ```sh

This will install rules module in the node_modules folder and update your package.json.
## Install using bower
```sh
$ bower install chess-rules
bower chess-rules#* cached git://github.com/ChessCorp/chess-rules.git#0.8.0
bower chess-rules#* validate 0.8.0 against git://github.com/ChessCorp/chess-rules.git#*
bower chess-rules#* new version for git://github.com/ChessCorp/chess-rules.git#*
bower chess-rules#* resolve git://github.com/ChessCorp/chess-rules.git#*
bower chess-rules#* download https://github.com/ChessCorp/chess-rules/archive/0.10.1.tar.gz
bower chess-rules#* extract archive.tar.gz
bower chess-rules#* resolved git://github.com/ChessCorp/chess-rules.git#0.10.1
bower chess-rules#~0.10.1 install chess-rules#0.10.1
chess-rules#0.10.1 bower_components/chess-rules
```
## Usage
### Import the main rules object
```js
var chessRules = require('chess-rules');
```
### Instantiate an initial position model
```js
var position = chessRules.getInitialPosition();
```
```sh
# creates a browser.js
$ npm run browser
```
## License

@@ -29,0 +47,0 @@

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