Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-chart-js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-chart-js - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

package.json
{
"name": "vue-chart-js",
"version": "1.3.0",
"version": "1.4.0",
"description": "Chart.js for VueJs.",

@@ -5,0 +5,0 @@ "author": "Kevin Ongko",

@@ -8,6 +8,19 @@ # vue-chart-js

[Chart.js](http://www.chartjs.org/) for [Vue](https://vuejs.org/).
[Chart.js](http://www.chartjs.org/) wrapper component based on [Vue](https://vuejs.org/).
**Works with Vue 2.***
## Installation
### Install via CDN
```html
<script src="https://unpkg.com/chart.js"></script>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-chart-js"></script>
<script>
Vue.use(VueChart.default)
</script>
```
### Install via NPM
```sh

@@ -17,3 +30,3 @@ $ npm install vue-chart-js --save

### Install as Component
#### Register as Component
```js

@@ -32,3 +45,3 @@ import Vue from 'vue'

### Install as Plugin
#### Register as Plugin
```js

@@ -41,12 +54,2 @@ import Vue from 'vue'

### Install via CDN
```html
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vue-chart-js"></script>
<script>
Vue.use(VueChart.default)
</script>
```
## Usage

@@ -53,0 +56,0 @@

@@ -18,2 +18,5 @@ /* eslint-env node */

entry: './src/index.js',
externals: {
'chart.js': 'Chart'
},
output: {

@@ -24,3 +27,3 @@ path: path.resolve(__dirname, 'dist'),

libraryTarget: 'umd',
umdNamedDefine: true,
umdNamedDefine: true
},

@@ -31,3 +34,3 @@ module: {

test: /\.vue$/,
loader: 'vue-loader',
loader: 'vue-loader'
},

@@ -37,3 +40,3 @@ {

loader: 'babel-loader',
exclude: path.resolve(__dirname, 'node_modules'),
exclude: path.resolve(__dirname, 'node_modules')
},

@@ -43,8 +46,8 @@ ]

plugins: [
new CleanWebpackPlugin(['./dist']),
new CleanWebpackPlugin(['./dist'])
],
devtool: false,
performance: {
hints: false,
hints: false
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc