
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
@vuesimple/vs-button
Advanced tools
A light weight vue plugin built groundup.
Code Sandbox: Link
npm i @vuesimple/vs-button
<template>
<vs-button>Default</vs-button>
<vs-button variant="primary" fill>Primary</vs-button>
</template>
<script>
import VsButton from '@vuesimple/vs-button';
export default {
components: {
VsButton,
},
};
</script>
<script src="https://unpkg.com/@vuesimple/vs-button@<version>/dist/vs-button.min.js"></script>
// Main/Entry file
app.use(VsButton.plugin);
<template>
<vs-button>Default</vs-button>
<vs-button variant="primary" fill>Primary</vs-button>
</template>
Nuxt.js
Nuxt Code Snippet
After installation,
Create a file /plugins/vs-button.js
import Vue from 'vue';
import VsButton from '@vuesimple/vs-button';
Vue.component('vs-button', VsButton);
Update nuxt.config.js
module.exports = {
...
plugins: [
{ src: '~plugins/vs-button', mode: 'client' }
...
]
}
In the page/ component
<template>
<vs-button>Default</vs-button>
<vs-button variant="primary" fill>Primary</vs-button>
</template>
Note
<no-ssr>...</no-ssr> tag.import VsButton from '@vuesimple/vs-button'
& add in component:{VsButton} and use it within component, without globally installing in plugin folder.| Name | Type | Default | Description |
|---|---|---|---|
| variant | String | default | Type of button to be shown. (default, primary, secondary, warning, danger, success, light) |
| size | String | medium | Size of button. (small, medium, large) |
| fill | Boolean | - | Applies background color to button |
| isRound | Boolean | - | Applies round/pill styling |
| isLoading | Boolean | - | Will show loader and button will be disabled |
| disabled | Boolean | - | Disable button |
| href | String | - | Link/URL string |
| target | String | - | Can add _blank, _self |
| rel | String | - | Rel strings can be added like noreferrer, noopener |
| Name | Description |
|---|---|
| click | Emitted when the button clicked. |
You can define own item markup via slots:
| Name | Description |
|---|---|
| (default) | Holds the button content and can contain HTML. |
| loader | Holds the loader component and can contain HTML/vue-component. |
FAQs
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 found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.