
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
vue-intercom
Advanced tools
A reactive wrapper for Intercom's JavaScript API
npm install --save vue-intercom
import Vue from 'vue';
import VueIntercom from 'vue-intercom';
Vue.use(VueIntercom, { appId: 'your-app-id' });
vue-intercom handles the injection of Intercom's script into your html and wraps calls to the Intercom API with methods and exposes them through the $intercom object in your components.
new Vue({
el: '#app',
data() {
return {
userId: 1,
name: 'Foo Bar',
email: 'foo@bar.com',
};
},
mounted() {
this.$intercom.boot({
user_id: this.userId,
name: this.name,
email: this.email,
});
this.$intercom.show();
},
watch: {
email(email) {
this.$intercom.update({ email });
},
}
});
cd example
yarn
yarn dev
$intercom.readySet to true once the Intercom script has been loaded.
$intercom.visibleSet via the onShow/onHide events.
$intercom.unreadCountSet via the onUnreadCountChange event.
$intercom.boot(/* optional */options)Calls Intercom('boot'). Automatically sets the app_id unless specified in the options object.
$intercom.shutdown()Calls Intercom('shutdown').
$intercom.update(/* optional */options)Calls Intercom('update'). If the options object is set, calls Intercom('update', options)
$intercom.show()Calls Intercom('show').
$intercom.hide()Calls Intercom('hide').
$intercom.showMessages()Calls Intercom('showMessages').
$intercom.showNewMessage(/* optional */content)Calls Intercom('showNewMessage') with pre-populated content if provided.
$intercom.trackEvent(name, /* optional */metadata)Calls Intercom('trackEvent') with extra metadata if provided.
$intercom.getVisitorId()Calls Intercom('getVisitorId').
Copyright (c) 2017 Continuon
FAQs
An Intercom plugin for Vue.js
The npm package vue-intercom receives a total of 2,892 weekly downloads. As such, vue-intercom popularity was classified as popular.
We found that vue-intercom demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.