Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@dzeio/form-manager
Advanced tools
A powerfull Manager for all your forms
nothing difficult
yarn add @dzeio/form-manager
or
npm install @dzeio/form-manager
import FormManager from '@dzeio/form-manager';
const fm = new FormManager(docuement.getElementById("form"));
// add modules
import { FMRepeatAssignment } from '@dzeio/FormManager/modules/FMRepeatInput'
fm.assign(FMRepeatAssignment)
// or
import FMDateInput from '../FormManagerGit/modules/FMDateInput'
fm.assign({
input: FMDateInput,
type: "date",
tagName: "input"
});
// After adding modules run to reffect modules to inputs
fm.setupInputs();
// verify form validity:
fm.verify(); //return true if valid else return false
// if it returns false you can use the variable under to see th FMInput that isnt valid
fm.lastErroredInput
// submit your data to an endpoint
fm.submit("/api/idk", (ev) => {/* onloaded callback*/}, /* verify datas beforehand default:true*/ true)
// get the json of your form
fm.getJSON()
// fill form from URI (datas MUST be in JSON (see getJSON for examples))
fm.fillFromURI("uri")
// same as before but you give the json from ts
fm.fillFromJSON(json)
// change if you only see the form or edit them
fm.setMode(FMMode.ViewMode or FMMode.EditMode)
// same thing as before but just for one field
fm.setModeForInput(FMMode.ViewMode or FMMode.EditMode, "inputName")
// Reset the form to it's defaults values
fm.clear()
Module name | Description |
---|---|
Datalist | Manage the datalist better than ever ! |
Date | Manage the date element |
File | Manage single file uploads |
Repeat | Make your fields repeatable ! |
Select | Fix your Select |
Attribute name | Description |
---|---|
data-autoset | Update your value in near realtime |
data-default | a better value than value |
data-ignore | i don't see this |
data-regex | regex your value |
Complete listing here
FAQs
A powerfull Form Manager
We found that @dzeio/form-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.