![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@160over90/vue-form-fetch
Advanced tools
Allows you to use the HTTP methods to send or get data gathered from any number of form fields.
Allows you to use the HTTP methods GET and POST to send or get data gathered from any number of form fields.
If you do not have
yarn
you can download it here.
yarn add @160over90/vue-form-fetch
Include in main.js (app entry point)
import FormFetch from '@160over90/vue-form-fetch';
Vue.use(FormFetch);
yarn install
yarn run serve
method the method attribute excepts the "GET" or "POST" HTTP methods.
action the action attribute excepts your API endpoint or path to PHP middleware.
Example
<FormFetch
method="POST"
action="/submit-form.php"
>
<template slot-scope="{ state, response }">
<div>
<label>
<div>First Name</div>
<input name="firstName">
</label>
</div>
<div>
<label>
<div>Last Name</div>
<input name="lastName">
</label>
</div>
<button v-text="'Submit'"/>
<p v-if="state === 'pending'>
Submitting your request...
</p>
<p v-else-if="state === 'rejected'">
Sorry, that didn't work!
</p>
<p v-else-if="state === 'fulfilled'">
{{ response.ok
? "You're good to go!"
: "Sorry, that didn't work!"
}}
</p>
</template>
</FormFetch>
init (Object, Default: null) Allows you to pass a configuration object.
Example
<FormFetch
method="POST"
action="/submit-form.php"
:init="{
mode: 'cors',
cache: 'no-cache',
}"
>
...
For request properties, refer to: https://developer.mozilla.org/en-US/docs/Web/API/Request.
FAQs
Allows you to use the HTTP methods to send or get data gathered from any number of form fields.
The npm package @160over90/vue-form-fetch receives a total of 0 weekly downloads. As such, @160over90/vue-form-fetch popularity was classified as not popular.
We found that @160over90/vue-form-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.