# star-icon-tag

> Make SVG Stars

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

## Install

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

## 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.5 |
| Published | 2016-03-13 |
| First published | 2016-03-11 |
| 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, riot, riot-tag, star, stars, svg, icon, star-icon |

## Links

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

## Dependencies (1)

- [riot](https://npm.io/package/riot.md) ^2.3.17

## 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.5 (latest) — 2016-03-13
- 0.0.4 — 2016-03-12
- 0.0.3 — 2016-03-11
- 0.0.2 — 2016-03-11
- 0.0.1 — 2016-03-11

## README

<p align="center">
  <img src="https://cdn.rawgit.com/nhz-io/star-icon-tag/master/examples/star.svg"
    alt="STAR">
</p>
<h1 align="center">star-icon-tag</h1>
<p align="center">
  <a href="https://riotjs.com">
    <img src="https://cdn.rawgit.com/nhz-io/star-icon-tag/master/riot-badge.png"
      alt="RIOT">
  </a>
  <a href="https://npmjs.org/package/star-icon-tag">
    <img src="https://img.shields.io/npm/v/star-icon-tag.svg?style=flat"
      alt="NPM Version">
  </a>  

  <a href="https://travis-ci.org/nhz-io/star-icon-tag">
    <img src="https://img.shields.io/travis/nhz-io/star-icon-tag.svg?style=flat"
      alt="Build Status">
  </a>  
</p>
<h3 align="center">Make SVG Stars</h3>

## Install

```sh
$ npm i -D star-icon-tag
```

## Usage
```html
<star-icon fill="orange" />
```

```js
import 'star-icon-tag'
...
riot.mount('star-icon')
```

### Tag Properties

* `layers` - Number of overlapping star layers. *Default: `1`*

* `fill` - Star fill color. *Default: `#555`*

* `arms` - Number of star arms. *Default: `5`*

* `ratio` - Inner points radius / Outer points radius ratio. *Default: `0.6`*

* `rotation` - Rotation angle in degrees - *Default: `0`*

* `zoom` - Inner points radius / Outer points radius ratio - *Default: `0.6`*

`fill`, `arms`, `ratio`, `rotation` and `zoom` can be either a single value
or a comma-separated list of values for each layer. If the count of values
does not match the number of layers, the list is trimmed or propagated with
the first value.

## Examples

### Header star
![star.svg](https://cdn.rawgit.com/nhz-io/star-icon-tag/master/examples/star.svg)
```html
<star-icon layers="6"
  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.50, 0.45, 0.4" />
```

### Compass
![compass.svg](https://cdn.rawgit.com/nhz-io/star-icon-tag/master/examples/compass.svg)
```html
<star-icon layers="8"
  arms="4"
  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="-22.5, -22.5, 22.5, 22.5, 0, 0, 45, 45"
  zoom="0.8, 0.75, 0.8, 0.75, 1, 0.95, 1, 0.95" />
```

### Red
![compass.svg](https://cdn.rawgit.com/nhz-io/star-icon-tag/master/examples/red.svg)
```html
<star-icon layers="3"
  arms="5"
  fill="red, white, red"
  ratio="0.8, 0.6, 0.4"
  zoom="1, 0.95, 0.95" />
```

### Squares
![compass.svg](https://cdn.rawgit.com/nhz-io/star-icon-tag/master/examples/squares.svg)
```html
<star-icon layers="8"
  arms="4"
  fill="black, white, black, white, black, white, black, white"
  ratio="0.7, 0.7, 0.7, 0.7, 0.7, 0.7, 0.7"
  zoom="1, 0.9, 0.7, 0.6, 0.49, 0.39, 0.33, 0.23"
  rotation="45, 45, 0, 0, 45, 45, 0, 0, 45, 45, 0, 0" />
```

## See also

![star-icon-hapi](https://star.nhz.io?layers=6&width=30&height=30&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) [https://github.com/nhz-io/star-icon-hapi](https://github.com/nhz-io/star-icon-hapi)

## License

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

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