# star-icon-hapi

> star-icon svg as a service (hapi)

Latest version **0.0.6** (published 2016-03-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install star-icon-hapi
pnpm add star-icon-hapi
yarn add star-icon-hapi
bun add star-icon-hapi
```

## 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.6 |
| Published | 2016-03-13 |
| First published | 2016-03-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Ishi Ruy |
| Maintainers | nhz.io |
| Keywords | nhz.io, star, stars, svg, icon, star-icon, api, hapi, service, hapi-route, star-icon-api, star-icon-tag |

## Links

- npm: https://www.npmjs.com/package/star-icon-hapi
- Repository: https://github.com/nhz-io/star-icon-hapi
- Homepage: https://github.com/nhz-io/star-icon-hapi#readme
- Issues: https://github.com/nhz-io/star-icon-hapi/issues
- npm.io page: https://npm.io/package/star-icon-hapi

## Dependencies (1)

- [star-icon-tag](https://npm.io/package/star-icon-tag.md) 0.0.4

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2016-03-13
- 0.0.5 — 2016-03-13
- 0.0.4 — 2016-03-13
- 0.0.3 — 2016-03-13
- 0.0.2 — 2016-03-13
- 0.0.1 — 2016-03-13
- 0.0.0 — 2016-03-12

## README

<p align="center">
  <img src="https://star.nhz.io?layers=6&width=300&height=300&fill=navy,silverblue,lightblue,navy,silverblue,lightblue&ratio=0.55,0.5,0.44,0.55,0.5,0.44&rotation=0,0,0,36,36,36&zoom=1,0.95,0.9,0.5,0.45,0.4"
    alt="STAR">
</p>
<h1 align="center">star-icon-hapi</h1>
<p align="center">  
  <a href="https://npmjs.org/package/star-icon-hapi">
    <img src="https://img.shields.io/npm/v/star-icon-hapi.svg?style=flat"
      alt="NPM Version">
  </a>
  <a href="https://travis-ci.org/nhz-io/star-icon-hapi">
    <img src="https://img.shields.io/travis/nhz-io/star-icon-hapi.svg?style=flat"
      alt="Build Status">
  </a>  
</p>
<h3 align="center">SVG Stars as a Service</h3>

## Install

```sh
$ npm i -S star-icon-hapi
```

## Usage
```js
...
import starIconRoute from 'star-icon-hapi'
...
// Setup hapi server
...
server.route(starIconRoute({
	method: 'GET',
	path: '/api/star',
}))
```

### Query parameter

* `layers` - number of layers in the star
* `width` - optional width (height must be present too)
* `height` - optional height (width must be present too)
* `arms` - single number / list of numbers per layer
* `fill` - single color / list of colors per layer
* `ratio` - single inner/outer ratio / list of ratios per layer (`ratio < 1`)
* `rotatio` - single rotation angle / list of angles per layer (degrees)
* `zoom` - single zoom value / list of values per layer (`zoom < 1`)

## Examples

### [Header Star](https://star.nhz.io?layers=6&width=300&height=300&fill=navy,silverblue,lightblue,navy,silverblue,lightblue&ratio=0.55,0.5,0.44,0.55,0.5,0.44&rotation=0,0,0,36,36,36&zoom=1,0.95,0.9,0.5,0.45,0.4)

![Header Star](https://star.nhz.io?layers=6&width=300&height=300&fill=navy,silverblue,lightblue,navy,silverblue,lightblue&ratio=0.55,0.5,0.44,0.55,0.5,0.44&rotation=0,0,0,36,36,36&zoom=1,0.95,0.9,0.5,0.45,0.4)

* **layers**: `6`
* **width**: `300`
* **height**: `300`
* **fill**: `navy`, `silverblue`, `lightblue`, `navy`, `silverblue`, `lightblue`
* **ratio**: `0.55`, `0.5`, `0.44`, `0.55`, `0.5`, `0.44`
* **rotation**: `0`, `0`, `0`, `36`, `36`, `36`
* **zoom**: `1`, `0.95`, `0.95`, `0.5`, `0.45`, `0.4`

### [Compass](https://star.nhz.io?layers=8&width=300&height=300&arms=4&fill=black,white,black,white,black,%23eee,black,%23eee&ratio=0.16,0.12,0.16,0.12,0.16,0.12,0.16,0.12&rotation=337.5,337.5,22.5,22.5,0,0,45,45&zoom=0.8,0.75,0.8,0.75,1,0.95,1,0.95)

![Compass](https://star.nhz.io?layers=8&width=300&height=300&arms=4&fill=black,white,black,white,black,%23eee,black,%23eee&ratio=0.16,0.12,0.16,0.12,0.16,0.12,0.16,0.12&rotation=337.5,337.5,22.5,22.5,0,0,45,45&zoom=0.8,0.75,0.8,0.75,1,0.95,1,0.95)

* **layers**: `8`
* **width**: `300`
* **height**: `300`
* **fill**: `black`, `white`, `black`, `white`, `black`, `#eee`, `black`, `#eee`
* **ratio**: `0.16`, `0.12`, `0.16`, `0.12`, `0.16`, `0.12`, `0.16`, `0.12`
* **rotation**: `337.5`, `337.5`, `22.5`, `22.5`, `0`, `0`, `45`, `45`
* **zoom**: `0.8`, `0.75`, `0.8`, `0.75`, `1`, `0.95`, `1`, `0.95`

### [Magen David](https://star.nhz.io/?layers=4&width=300&height=300&arms=3&fill=navy,white,navy,white&ratio=0.5,0.5,0.5,0.5&rotation=0,0,180,180&zoom=1,0.9,1,0.9)

![Magen David](https://star.nhz.io/?layers=4&width=300&height=300&arms=3&fill=navy,white,navy,white&ratio=0.5,0.5,0.5,0.5&rotation=0,0,180,180&zoom=1,0.9,1,0.9)

* **layers**: `4`
* **width**: `300`
* **height**: `300`
* **fill**: `navy`, `white`, `navy`, `white`
* **ratio**: `0.5`, `0.5`, `0.5`, `0.5`
* **rotation**: `0`, `0`, `180`, `180`
* **zoom**: `1`, `0.9`, `1`, `0.9`

## [ESDOC](http://nhz-io.github.io/star-icon-hapi)

## See Also
![star-icon-tag](https://star.nhz.io?layers=6&width=30&height=30&fill=brown,orange,yellow,brown,orange,yellow&ratio=0.55,0.5,0.44,0.55,0.5,0.44&rotation=0,0,0,36,36,36&zoom=1,0.95,0.9,0.5,0.45,0.4)
[https://github.com/nhz-io/star-icon-tag](https://github.com/nhz-io/star-icon-tag)

## License

MIT © [Ishi Ruy](https://nhz.io/star-icon-hapi)

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