
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
md-svg-vue
Advanced tools
This library should grant an easy-to-use interface to icons from Material Design.
Advantages of this module in comparing to fonts, svg sprites, etc.
Simply install it using npm or yarn:
npm install --save md-svg-vue
or
yarn add md-svg-vue
Simply import the icon you wish to use to your vue project with the CommonJS syntax like in the following examples:
var MdClose = require('md-svg-vue/dist/action/MdClose');
// or
import MdClose from 'md-svg-vue/dist/action/MdClose';
Common structure of import paths:
import MdIcon from 'md-svg-vue/dist/<namespace>/<icon-name>.vue'
where
Then you need to import the icon to your Vue component:
props: {
// ...
},
components: {
MdClose,
MdBluetoothSearching,
MdAttachMoney
}
The naming syntax of these components is md-<kebab-cased-icon-name>
.
Example.vue:
<template>
<div>
<button @click="close()">
<md-close></md-close>
</button>
</div>
</template>
or
<template>
<div>
<button @click="close()">
<md-close class="your-class"></md-close>
</button>
</div>
</template>
or
<template>
<div class="bluetooth-searching">
<md-bluetooth-searching :width="16" :height="16"></md-bluetooth-searching>
<span>Searching...</span>
</div>
</template>
And after rendering the icon component you will see resulting html:
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" class="icon md-icon">
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"></path>
</svg>
1.0.20 (2018-10-08)
<a name="1.0.19"></a>
FAQs
Server Side Material Design Icons (SVG) for Vue.js
We found that md-svg-vue 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.