Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
The Javascript cropping widget for Vue.js
npm install --save vue-jcrop
Install all the components:
import Vue from 'vue'
import VueJcrop from 'vue-jcrop'
Vue.use(VueJcrop)
Use specific components:
import Vue from 'vue'
import { Jcrop } from 'vue-jcrop'
Vue.component('Jcrop', Jcrop)
⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.
Install all the components:
import 'vue-jcrop/dist/vue-jcrop.css'
import VueJcrop from 'vue-jcrop/dist/vue-jcrop.common'
Vue.use(VueJcrop)
Use specific components:
import 'vue-jcrop/dist/vue-jcrop.css'
import { Jcrop } from 'vue-jcrop/dist/vue-jcrop.common'
Vue.component('Jcrop', Jcrop)
⚠️ You may have to setup your bundler to embed the css file in your page.
<link rel="stylesheet" href="vue-jcrop/dist/vue-jcrop.css"/>
<script src="vue.js"></script>
<script src="vue-jcrop/dist/vue-jcrop.browser.js"></script>
The plugin should be auto-installed. If not, you can install it manually with the instructions below.
Install all the components:
Vue.use(VueJcrop)
Use specific components:
Vue.component('Jcrop', VueJcrop.Jcrop)
Install all the components:
import Vue from 'vue'
import VueJcrop from 'vue-jcrop/src'
Vue.use(VueJcrop)
Use specific components:
import Vue from 'vue'
import { Jcrop } from 'vue-jcrop/src'
Vue.component('Jcrop', Jcrop)
⚠️ You need to configure your bundler to compile .vue
files. More info in the official documentation.
TODO
TODO
The first time you create or clone your plugin, you need to install the default dependencies:
npm install
This will run webpack in watching mode and output the compiled files in the dist
folder.
npm run dev
While developping, you can follow the install instructions of your plugin and link it into the project that uses it.
In the plugin folder:
npm link
In the other project folder:
npm link vue-jcrop
This will install it in the dependencies as a symlink, so that it gets any modifications made to the plugin.
You may have to login to npm before, with npm adduser
. The plugin will be built in production mode before getting published on npm.
npm publish
This will build the plugin into the dist
folder in production mode.
npm run build
FAQs
The Javascript cropping widget for Vue.js
The npm package vue-jcrop receives a total of 82 weekly downloads. As such, vue-jcrop popularity was classified as not popular.
We found that vue-jcrop 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.