
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
页面快速生成系统
https://formnic.faas.elenet.me
https://formnic.faas.elenet.me/docs/#/
npm install formnic -S
在控制台制作表单,之后在项目中使用
Formnic 默认导出了一个 Class:
HTML
<div id="form"></div>
JavaScript
import Formnic from 'formnic'
import 'formnic/lib/index.css'
const form = new Formnic('#form', {
formId: '59391db161e4722ff7f4d2c0',
onSubmit(data) {
// process data
},
showSubmit: false, // whether to show the submit button, default true
// provide data to initial the form
model: {
name: 'jack',
age: 30,
sex: 'female'
// ....
}
})
form.getModel() // get current form model
form.reset() // reset form
form.validate(isValid => { console.log(isValid); }); // validate form
form.submit() // submit form
如果你的项目使用了 Vue,还可以使用 Formnic 组件:
<template>
<Formnic
:model="model"
form-id="59391db161e4722ff7f4d2c0"
:on-submit="submit"
ref="form" />
</template>
<script>
import { Formnic } from 'formnic'
import 'formnic/lib/index.css'
export default {
components: {
Formnic
},
data() {
return {
model: {}
}
},
methods: {
submit(data) {
// process data
},
reset() {
this.$refs.form.reset()
},
validate() {
this.$refs.form.validate(valid => {
console.log(valid)
})
}
}
}
</script>
FAQs
A form page builder
The npm package formnic receives a total of 1 weekly downloads. As such, formnic popularity was classified as not popular.
We found that formnic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.