0.0.20 • Published 2 months ago

be-fetching v0.0.20

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

be-fetching

Playwright Tests How big is this package in your project?

Enhances the input element with type=url with fetching support.

<input type=url be-fetching>

When a valid url is entered, fetches it. Result goes to oInput.beEnhanced.beFetching.value. oInput fires non bubbling event "enh-by-be-fetching.value-changed" when value changes. While fetch is in progress, adds css class "be-fetching-fetch-in-progress" to the adorned element.

be-fetching can be applied to other elements that contain the href property (link, a). TODO

be-fetching can broadcast result to peer element based on "standard" binding attributes TODO

<input type=url be-fetching="as $pie.">
<meta itemprop=pie>

Running locally

Any web server than can serve static files will do, but...

  1. Install git.
  2. Do a git clone or a git fork of repository https://github.com/bahrus/be-fetching
  3. Install node.js
  4. Open command window to folder where you cloned this repo.
  5. npm install

  6. npm run serve

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

Using from ESM Module:

import 'be-fetching/be-fetching.js';

Using from CDN:

<script type=module crossorigin=anonymous>
    import 'https://esm.run/be-fetching';
</script>
0.0.20

2 months ago

0.0.19

4 months ago

0.0.17

10 months ago

0.0.18

10 months ago

0.0.16

1 year ago

0.0.14

2 years ago

0.0.15

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago