0.0.5 • Published 1 year ago

be-one-and-only v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

be-one-and-only

NPM version Playwright Tests How big is this package in your project?

<template be-one-and-only="Zhou Sheng Chen">
    My content
</template>

<template be-one-and-only="Zhou Sheng Chen">
    My content
</template>

... only one instance is instantiated in any single Shadow DOM realm.

Viewing Locally

  1. Install git.
  2. Fork/clone this repo.
  3. Install node.
  4. Open command window to folder where you cloned this repo.
  5. npm install

  6. npm run serve

  7. Open http://localhost:3030/demo/dev in a modern browser.

Importing in ES Modules:

import 'be-one-and-only/be-one-and-only.js';

CDN

import 'https://esm.run/be-one-and-only';