
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
vue-product-carousel
Advanced tools
Simple slider on Vue.js with hot image replacement, Zoom and Swipe mode
Product carousel ported to Vue.js with hot image replacement, Zoom and Swipe mode
To be able to use this component you should install it first
npm i --save vue-product-carousel
Then import it:
import carousel from 'vue-product-carousel'
Use carousel
component and pass your images as images
prop:
<template>
<carousel :images="images">
</carousel>
</template>
<script>
...
data(){
images:[
'http://lorempixel.com/1000/1000/business/1/',
'http://lorempixel.com/1000/1000/business/2/',
'http://lorempixel.com/1000/1000/business/3/'
]
}
components:{
carousel
}
...
</script>
...
Note: You will need Babel Loader in your Webpack config file in order to support ES6 syntax inside component.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.
FAQs
Simple product carousel with hot image replacement, Zoom and Swipe mode
The npm package vue-product-carousel receives a total of 43 weekly downloads. As such, vue-product-carousel popularity was classified as not popular.
We found that vue-product-carousel 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.