
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
🇨🇳 访问中文版
npm i zanm -S
yarn add zanm
<!-- import style -->
<link rel="stylesheet" href="https://unpkg.com/zanm/lib/zanm-css/index.css" />
<!-- import script -->
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
<script src="https://unpkg.com/zanm/lib/zanm.min.js"></script>
# Install babel-plugin-import
npm i babel-plugin-import -D
// set babel config in .babelrc or babel-loader
// Note: Don't set libraryDirectory if you are using webpack 1.
{
"plugins": [
["import", {
"libraryName": "zanm",
"libraryDirectory": "es",
"style": true
}]
]
}
Then you can import components from zanm, equivalent to import manually below.
import { Button } from 'zanm';
If you are using TypeScript,please use ts-import-plugin instead, The following is a configuration using Vue's official scaffolding Vue Cli 3 to build:
# Install ts-import-plugin
npm i ts-import-plugin -D
// vue.config.js
const tsImportPluginFactory = require('ts-import-plugin');
module.exports = {
parallel: false,
lintOnSave: false,
configureWebpack: {
module: {
rules: [{
test: /\.(jsx|tsx|js|ts)$/,
loader: 'ts-loader',
options: {
happyPackMode: false,
transpileOnly: true,
getCustomTransformers: () => ({
before: [tsImportPluginFactory({
libraryName: 'zanm',
libraryDirectory: 'es',
style: true
})]
}),
compilerOptions: {
module: 'es2015'
}
},
}]
}
},
devServer: {
disableHostCheck: true
}
}
import Button from 'zanm/lib/button';
import 'zanm/lib/zanm-css/base.css';
import 'zanm/lib/zanm-css/button.css';
import Vue from 'vue';
import Zanm from 'zanm';
import 'zanm/lib/zanm-css/index.css';
Vue.use(Zanm);
If you configured babel-plugin-import, you won't be allowed to import all components.
Please make sure to read the Contributing Guide before making a pull request.
Modern browsers and Android 4.0+, iOS 6+.
You can scan the following QR code to access the demo:
FAQs
A Mobile UI for Vue.js 2.0
We found that zanm 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

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.