You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

astar-algorithm

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astar-algorithm - npm Package Compare versions

Comparing version

to
0.1.1

2

package.json
{
"name": "astar-algorithm",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/nervgh/astar-algorithm",

@@ -5,0 +5,0 @@ "description": "An almost universal implementation of A* search algorithm in JavaScript",

# astar-algorithm
An almost universal implementation of A* search algorithm in JavaScript
An almost universal implementation of [A* search algorithm](https://en.wikipedia.org/wiki/A*_search_algorithm#Example) in JavaScript.

@@ -15,6 +15,6 @@ [![NPM version][npm-image]][npm-url]

```js
// 1) You need require the function
// 1)
const astar = require('astar-algorithm')
// 2) You should define all callbacks
// 2)
let callbacks = {

@@ -43,14 +43,13 @@ // It should return id / key / hash for a node

// 3) Execute it!
// 3)
let path = astar(start, goal, callbacks)
```
See examples [there](test/index.js).
See more examples [there](test/index.js).
[npm-image]: https://img.shields.io/npm/v/koa-architect.svg?style=flat
[npm-url]: https://npmjs.org/package/koa-architect
[npm-image]: https://img.shields.io/npm/v/astar-algorithm.svg?style=flat
[npm-url]: https://npmjs.org/package/astar-algorithm
[travis-image]: https://img.shields.io/travis/nervgh/astar-algorithm.svg?style=flat
[travis-url]: https://travis-ci.org/nervgh/astar-algorithm
[coveralls-image]: https://img.shields.io/coveralls/nervgh/astar-algorithm.svg?style=flat
[coveralls-url]: https://coveralls.io/r/nervgh/astar-algorithm?branch=master
[coveralls-url]: https://coveralls.io/r/nervgh/astar-algorithm?branch=master