# star-polygon

> Generate star polygons

Latest version **0.0.0** (published 2013-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install star-polygon
pnpm add star-polygon
yarn add star-polygon
bun add star-polygon
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2013-05-11 |
| First published | 2013-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mikola Lysenko |
| Maintainers | mikolalysenko |
| Keywords | star, polygon, graph, test, data |

## Links

- npm: https://www.npmjs.com/package/star-polygon
- Repository: https://github.com/mikolalysenko/star-polygon
- npm.io page: https://npm.io/package/star-polygon

## Dependencies (1)

- [scratch](https://npm.io/package/scratch.md) ~0.0.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.0.0 (latest) — 2013-05-11

## README

star-polygon
============
Generates a regular [star polygon](http://en.wikipedia.org/wiki/Star_polygon).  

## Example

```javascript
console.log(require("star-polygon")(5, 2))

//Prints:
//
//  [[0,2], [2,4], [4,1], [1,3], [3,0]]
//
```

## Install

    npm install star-polygon

### `require("star-polygon")(n, k)`
Generates a star polygon.

* `n` is the number of vertices
* `k` is the step size between vertices

**Returns** A list of edges

## Credits
(c) 2013 Mikola Lysenko. MIT License

---
_Source: https://npm.io/package/star-polygon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
