
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
@deppon/deppon-norm
Advanced tools
@deppon/deppon-norm前端规范工具包
npm install @deppon/deppon-norm
import { commit, note, start, stylelint } from '@deppon/deppon-norm';
// 使用 commit
commit('commit message');
// 使用 note
note('note message');
// 使用 start
start('start message');
// 使用 stylelint
stylelint('stylelint message');
在 Vue 应用中安装插件:
import { createApp } from 'vue';
import { VuePlugin } from '@deppon/deppon-norm';
const app = createApp(App);
// 安装插件
app.use(VuePlugin);
app.mount('#app');
<script setup>
import { useNorm } from '@deppon/deppon-norm';
const norm = useNorm();
const handleCommit = () => {
norm.commit('commit message');
};
const handleNote = () => {
norm.note('note message');
};
const handleStart = () => {
norm.start('start message');
};
const handleStylelint = () => {
norm.stylelint('stylelint message');
};
</script>
<template>
<button @click="handleCommit">Commit</button>
<button @click="handleNote">Note</button>
<button @click="handleStart">Start</button>
<button @click="handleStylelint">Stylelint</button>
</template>
<script>
export default {
methods: {
handleCommit() {
// 通过 this.$norm 访问
this.$norm.commit('commit message');
},
handleNote() {
this.$norm.note('note message');
},
handleStart() {
this.$norm.start('start message');
},
handleStylelint() {
this.$norm.stylelint('stylelint message');
},
},
};
</script>
useNorm() - 获取 norm 实例commit(param1) - Commit 方法note(param1) - Note 方法start(param1) - Start 方法stylelint(param1) - Stylelint 方法更多 API 请参考源码。
FAQs
Frontend norm utilities package
The npm package @deppon/deppon-norm receives a total of 314 weekly downloads. As such, @deppon/deppon-norm popularity was classified as not popular.
We found that @deppon/deppon-norm demonstrated a healthy version release cadence and project activity because the last version was released less than 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
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.