![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
org.webjars.npm:vue-github-buttons
Advanced tools
:octocat: GitHub buttons component for Vue.
Via NPM:
npm install vue-github-buttons
Via Yarn:
yarn add vue-github-buttons
Go to https://gluons.github.io/vue-github-buttons
import Vue from 'vue';
import VueGitHubButtons from 'vue-github-buttons';
import App from './App.vue';
// Stylesheet
import 'vue-github-buttons/dist/vue-github-buttons.css';
Vue.use(VueGitHubButtons);
// Or if your don't want to use cache
Vue.use(VueGitHubButtons, { useCache: false });
new Vue({
el: '#app',
render: h => h(App)
});
<template>
<div id="app">
<gh-btns-watch slug="vuejs/vue" show-count></gh-btns-watch>
<gh-btns-star slug="vuejs/vue" show-count></gh-btns-star>
<gh-btns-fork slug="vuejs/vue" show-count></gh-btns-fork>
<gh-btns-follow user="yyx990803" show-count></gh-btns-follow>
</div>
</template>
<script>
// JavaScript ...
</script>
<style>
/* Style ... */
</style>
Add vue-github-buttons/nuxt
to modules
in nuxt.config.js.
module.exports = {
modules: [
'vue-github-buttons/nuxt',
// Or with options
['vue-github-buttons/nuxt', {
css: false, // Don't include CSS
useCache: false // Don't use cache
}]
]
};
css
Type: Boolean
Default: true
Include Vue GitHub Buttons's CSS.
useCache
Type: Boolean
Default: true
Enable caching. (See below)
Require VuePress v1.x
Add Vue GitHub Buttons to your plugins
in .vuepress/config.js
.
module.exports = {
plugins: [
require('vue-github-buttons/plugins/vuepress'),
/* Or using plugin with options */
[
require('vue-github-buttons/plugins/vuepress'),
{
useCache: false
}
]
]
}
Plugin options are the same as Vue plugin options.
useCache
Type: Boolean
Default: true
Enable count number caching. (Use session storage)
GitHub API has limited requests. So, caching may be useful when user refresh the webpage.
Vue.use(VueGitHubButtons, { useCache: false }); // Disable cache
gh-btns-watch
👁️ A watch button.
slug
- GitHub slug (username/repo).show-count
- Enable displaying the count number.gh-btns-star
⭐ A star button.
slug
- GitHub slug (username/repo).show-count
- Enable displaying the count number.gh-btns-fork
🍴 A fork button.
slug
- GitHub slug (username/repo).show-count
- Enable displaying the count number.gh-btns-follow
👤 A follow button.
user
- GitHub username.show-count
- Enable displaying the count number.FAQs
WebJar for vue-github-buttons
We found that org.webjars.npm:vue-github-buttons demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.