
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@branu-jp/v-drag
Advanced tools
v-drag
- a supler simple, Vue.js draggable component.
Demo: https://branu-ws.github.io/v-drag/
npm:
npm install @branu-jp/v-drag
yarn:
yarn add @branu-jp/v-drag --save
Node.js env (such a .vue
components):
<template>
<div>
<div style="position: absolute;" v-drag>
</div>
</div>
</template>
<script>
import drag from '@branu-jp/v-drag'
export default {
directives: {
drag
}
}
</script>
Browser env: coming soon.
An element with v-drag
must have position: absolute;
to be draggable.
You may desire only one part of an element to be draggable
. You can achieve this by passing a string which referes to an id
as argument to v-drag
.
<div id="header">
<div v-drag:header>
<div>
Some text
</div>
</div>
</div>
This will result in any area that is not <div id="header"
> not becoming draggable. One common use case is a modal, that is only draggable when the top area is clicked.
You can constrain the draggable object from leaving the viewpor by using the window-only
modifier like so:
<div v-drag.window-only>
This element cannot be dragged outside the window
</div>
Built by, for and at BRANU. Our open source projects can be found on our npm page: https://www.npmjs.com/org/branu-jp
v-drag
npm link: https://www.npmjs.com/package/@branu-jp/v-drag
FAQs
A Vue.js draggable directive
The npm package @branu-jp/v-drag receives a total of 223 weekly downloads. As such, @branu-jp/v-drag popularity was classified as not popular.
We found that @branu-jp/v-drag 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.