
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.
dot-vue-cli
Advanced tools
Vue2.x single file component .vue generator.
name, props, data, computed, watch and choose lifecycles, methods by interactive command line.mapState, mapMutations, mapActions by interactive command line.npm install -g dot-vue-cli
dot-vue
Type dot-vue in terminal and follow the instructions.

{
filename: "foo",
name: "foo",
data: true,
"data details": "a,b,c",
computed: true,
"computed details": "a,b,c",
watch: true,
"watch details": "a,b,c",
methods: true,
"methods details": "a,b,c",
"vue lifecycle hooks": ["mounted", "destroyed"],
"vuex helpers": ["mapState", "mapMutations", "mapActions"],
};
<!--template literals-->
<template>
<div></div>
</template>
<script>
import { {{mapState}} {{mapMutations}} {{mapActions}} } from 'vuex';
export default {
name: {{ name }},
props: { {{ props }} },
{{{data}}} { return {{ data }} },
computed: { {{ computed }} },
watch: { {{ watch }} },
{{beforeCreate}},
{{created}},
{{beforeMount}},
{{mounted}},
{{beforeUpdate}},
{{updated}},
{{beforeDestroy}},
{{destroyed}},
methods: { {{ methods }} },
};
</script>
<style lang="scss" scoped></style>
<!--target .vue file-->
<template>
<div></div>
</template>
<script>
import { mapState, mapMutations, mapActions } from "vuex";
export default {
name: "foo",
data() {
return { a: "", b: "", c: "" };
},
computed: { a() {}, b() {}, c() {} },
watch: { a() {}, b() {}, c() {} },
mounted() {},
destroyed() {},
methods: { a() {}, b() {}, c() {} },
};
</script>
<style lang="scss" scoped></style>
Enjoy it !
FAQs
vue2单文件组件生成器,命令行式初始化组件。
We found that dot-vue-cli 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
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.