Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@felte/element
Advanced tools
Felte is an extensible form library originally bult for Svelte. This package aims to provide Felte's functionality using a custom element. Felte, on its most simple form, only requires you to provide a <form>
element to it in order to work.
WARNING: This package is under development, things might break on updates and documentation is almost non-existent besides this README.
name
attribute is necessary).reporter
packages.Using Svelte as an example:
<script type="module">
import { prepareForm } from '@felte/element';
// Needs to run _before_ `<felte-form>` connects.
// Make sure to call it at the top leve of the module.
prepareForm('signin', {
onSubmit: async (values) => {
/* call to an api */
},
});
</script>
<felte-form id="signin">
<form>
<input type="text" name="email" />
<input type="password" name="password" />
<input type="submit" value="Sign in" />
</form>
</felte-form>
npm install --save @felte/element
# Or if you use yarn
yarn add @felte/element
To learn more about how to use felte
to handle your forms, check the official documentation.
This package should work nicely with any framework. Specially if you're using the prepareForm
method of creating your form. It also works really nice with frameworks that set attributes as properties or frameworks that provide syntax to set values to properties of elements instead of attributes.
FAQs
An extensible form library that can be used as a custom element
The npm package @felte/element receives a total of 38 weekly downloads. As such, @felte/element popularity was classified as not popular.
We found that @felte/element demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.