@myosrs/crowns
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@myosrs/crowns

Crowns

MyOSRS Crowns is released under the MIT license.

Details

@myosrs/crowns is a javascript package that makes use of the Custom Elements Web API to make it dead simple to implement rank distinction of some sort using crowns. Largely inspired by the MMORPG RuneScape and in particular the approach taking to distinguish their admins (See reference on their web forums)

Installation & Usage

Assuming you are using a supported browser, you shouldn't have any issue or additional requirements past loading the script anywhere in your HTML (global template or layout wrapper)

<script src="https://unpkg.com/@myosrs/crowns@latest"></script>

Use it next to usernames you want to distingish

<div>
  <myosrs-crown></myosrs-crown>
  <span>Username</span>
</div>

Example

Checkout this minimal requirement Codepen Example to see it in action.

Readme

Keywords

none

Package Sidebar

Install

npm i @myosrs/crowns

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

10 kB

Total Files

7

Last publish

Collaborators

  • pqt-graveyard