Socket
Socket
Sign inDemoInstall

astar-algorithm

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc