2.0.1 • Published 6 years ago

gw2-coin-output v2.0.1

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

Published on webcomponents.org

\<gw2-coin-output>

<gw2-coin-output coin-string="123456">...</gw2-coin-output>

Converts a coin string to gold, silver and copper values appended by the corresponding icon from Guild Wars 2.

Prepend Zeroes

<gw2-coin-output prepend-zeroes coin-string="123456">...</gw2-coin-output>

This prepends zeroes to silver and copper values if they are less than 10. Useful for making sure all gw2-coin-outputs are easy to align vertically.

Install

npm i --save gw2-coin-output

Development

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

Viewing Your Application

$ polymer serve

Running Tests

$ polymer test