Socket
Socket
Sign inDemoInstall

vue-demi

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-demi - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

5

package.json

@@ -20,3 +20,6 @@ {

"scripts"
]
],
"bin":{
"vue-demi-fix": "./scripts/postinstall.js"
}
}

46

README.md
<p align="center">
<img src="./assets/logo.png" width="200"/>
<br>
<img src="./assets/banner.png" width="500"/>
<br>
<br>
<a href='https://www.npmjs.com/package/vue-demi'><img src='https://img.shields.io/npm/v/vue-demi?color=42b883' alt='npm'></a>
</p>
<h1 align="center">Vue Demi</h1>
<p align="center">
<b>Vue Demi</b> (<i>half</i> in French) is a developing utility<br> allows you to write <b>Universal Vue Libraries</b> for Vue 2 & 3<br>
<i>See more details in <a href='https://antfu.me/posts/make-libraries-working-with-vue-2-and-3'>this blog post</a></i>
</p>
<h4 align="center">
<br>
[![npm](https://img.shields.io/npm/v/vue-demi)](https://www.npmjs.com/package/vue-demi)
<pre align="center">
🚧 It's experimental, yet.
</pre>
</h4>
<br>
<p align="center">
<b>Vue Demi</b> (<i>half</i> in French) is a developing utility that allows you to write <b>Universal Vue Plugins</b> for Vue 2 and 3. See more details in <a href='https://antfu.me/posts/make-libraries-working-with-vue-2-and-3'>this blog post</a>.
</p>
> 🚧 Expiremental
## Usage

@@ -43,10 +46,25 @@

Then publish your plugin and all is done!
Publish your plugin and all is done!
## Examples
See [examples](./examples)
See [examples](./examples).
## Underhood
See [the blog post](https://antfu.me/posts/make-libraries-working-with-vue-2-and-3/#-introducing-vue-demi).
<details>
<summary>Redirecting Reslove</summary>
<br>
If the script doesn't get triggered or you have updated the Vue version, try to run the following command to resolve the redirecting.
```bash
npx vue-demi-fix
```
</details>
## License
MIT License © 2020 [Anthony Fu](https://github.com/antfu)
MIT License © 2020 [Anthony Fu](https://github.com/antfu)

@@ -39,3 +39,3 @@ const { execSync } = require('child_process')

if (!Vue || typeof Vue.version !== 'string') {
console.warn('[Vue-demi] vue is not detected. Please install vue first.')
console.warn('[vue-demi] Vue is not detected in the dependencies. Please install Vue first.')
}

@@ -51,2 +51,5 @@ else if (Vue.version.startsWith('2.')) {

switchVersion(3)
}
else {
console.warn(`[vue-demi] Vue version v${Vue.version} is not suppported.`)
}
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