unistar
v0.1.2
Published
Make unicode star text
Downloads
1
Readme
unistar
:star: Make unicode star text
Getting Started
$ yarn add unistar
or
$ npm i -S unistar
Usage
Import Library
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