
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@pderas/vue2-toggle
Advanced tools
A vue.js component for a toggle input.
Vue toggle is built as a vue plugin. It can be initialized just as the Vue documentation states.
import Toggle from "@pderas/vue2-toggle";
// defaults
Vue.use(Toggle, {
altColor: '#ccc',
color: '#2196F3',
labels: {
true_label: 'On',
false_label: 'Off'
},
useLabels: true,
type: 'round'
});
A vue toggle is easily created and can be bound to data with v-model.
<toggle></toggle>
Property | Required | Type | Default | Description |
---|---|---|---|---|
alt-color | false | String | '#ccc' | The color of the toggle when unchecked |
color | false | String | '#2196F3' | The color of the toggle when checked |
labels | false | Object | { true_label: 'on', false_label: 'off' } | The labels to use when use-labels is enabled |
type | false | String | 'round' | The type of style to use for the toggle |
use-labels | false | Boolean | true | Use on/off labels on the toggle |
value | false | Boolean | false | Value for the input, can be used with v-model |
Styling is currently limited, but can be expanded in the future.
This project is covered under the MIT License. Feel free to use it wherever you like.
FAQs
A vue 2 component for a toggle input
The npm package @pderas/vue2-toggle receives a total of 8 weekly downloads. As such, @pderas/vue2-toggle popularity was classified as not popular.
We found that @pderas/vue2-toggle demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.