New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fetch-for

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-for

Base class for web components as a service

latest
Source
npmnpm
Version
0.0.11
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

fetch-for (🐶) [TODO]

NPM version How big is this package in your project?

API Documentation

Demo

fetch-for is a small-ish, bare-bones simple fetch web component.

<div itemscope=prescription-management>
    <form be-reformable='{
        "baseLink": "base-api-services",
        "path": "med_orders/prescriptions/patient?id=zero"
    }'
        fetch-for-target=#prescriptions?.ish
    >
    </form>
    <div id=prescriptions itemscope=prescriptions>

    </div>
</div>

fetch-for works seamlessly with be-reformable, as illustrated above but can work ith any other component/library that:

  • Dispatches common event fetch-ready from the form element when the form is ready to be invoked on the client side (passes validity tests, has had a "submit" button clicked, etc).
  • Checks if the form is ready for invoking on any input event ([TODO]: make this configurable)

Keywords

web-components

FAQs

Package last updated on 11 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts