Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pine/unistar
:star: Make unicode star text
https://github.com/pine/unistar
Last synced: 26 days ago
JSON representation
:star: Make unicode star text
- Host: GitHub
- URL: https://github.com/pine/unistar
- Owner: pine
- License: unlicense
- Created: 2017-04-11T16:10:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T19:40:45.000Z (over 5 years ago)
- Last Synced: 2024-04-24T14:58:51.236Z (7 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/unistar
- Size: 4.88 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# unistar
[![npm](https://img.shields.io/npm/v/unistar.svg?maxAge=2592000&style=flat-square)](https://www.npmjs.org/package/unistar)
[![Travis](https://img.shields.io/travis/pine/unistar/master.svg?maxAge=2592000&style=flat-square)](https://travis-ci.org/pine/unistar)
[![Dependency Status](https://img.shields.io/david/pine/unistar.svg?maxAge=2592000&style=flat-square)](https://david-dm.org/pine/unistar)
[![devDependency Status](https://img.shields.io/david/dev/pine/unistar.svg?maxAge=2592000&style=flat-square)](https://david-dm.org/pine/unistar?type=dev):star: Make unicode star text
## Getting Started
```
$ yarn add unistar
```or
```
$ npm i -S unistar
```## Usage
### Import Library```javascript
const unistar = require('unistar')
```### Left to Right
|Code |Result|
|---------------|------|
|`unistar(0, 5)`|☆☆☆☆☆|
|`unistar(1, 5)`|★☆☆☆☆|
|`unistar(2, 5)`|★★☆☆☆|
|`unistar(3, 5)`|★★★☆☆|
|`unistar(4, 5)`|★★★★☆|
|`unistar(5, 5)`|★★★★★|### Right to Left
|Code |Result|
|---------------------|------|
|`unistar(0, 5, true)`|☆☆☆☆☆|
|`unistar(1, 5, true)`|☆☆☆☆★|
|`unistar(2, 5, true)`|☆☆☆★★|
|`unistar(3, 5, true)`|☆☆★★★|
|`unistar(4, 5, true)`|☆★★★★|
|`unistar(5, 5, true)`|★★★★★|## License
Public Domain