mine-sweeper-tag

1.0.6 • Public • Published

MineSweeper Tag

npm version

Minesweeper for Web Components

MineSweeper

Demo

https://kurehajime.github.io/minesweeper_tag/

Installation

npm install mine-sweeper-tag

Usage

npm

Define custom element.

import { mine_sweeper } from 'mine-sweeper-tag'
customElements.define('mine-sweeper', mine_sweeper)

Insert tag.

<mine-sweeper cols="10" bomb="10" beep />

CDN

insert your HTML.

<script type="module">
    import { mine_sweeper } from 'https://unpkg.com/mine-sweeper-tag@latest/dist/mine-sweeper.es.js';
    customElements.define('mine-sweeper', mine_sweeper)
</script>
<mine-sweeper cols="10" bomb="10" beep />

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

https://github.com/kurehajime/minesweeper/commits/main

Credits

@kurehajime

License

MIT

Package Sidebar

Install

npm i mine-sweeper-tag

Weekly Downloads

1,616

Version

1.0.6

License

MIT

Unpacked Size

2.07 MB

Total Files

9

Last publish

Collaborators

  • kurehajime