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

@leonardssh/use-lanyard

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leonardssh/use-lanyard

๐Ÿš€ Lanyard with Composition API for Vue

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
30
increased by7.14%
Maintainers
1
Weekly downloads
ย 
Created
Source

Logo

NPM version NPM downloads

Vue Use Lanyard

Use Lanyard API easily in your Vue app!

Report Bug ยท Request Feature ยท What Is Lanyard


Remember to ๐ŸŒŸ this Github if you ๐Ÿ’– it.


๐Ÿ“ฆ Installation

  • Using yarn: yarn add @leonardssh/use-lanyard
  • Using npm: npm i @leonardssh/use-lanyard
  • Using pnpm: pnpm add @leonardssh/use-lanyard

๐Ÿค“ Usage

โœจ This plugin supports both REST and WebSocket methods.

Using without websocket:

import { useLanyard } from '@leonardssh/use-lanyard';

const { success, data, error } = await useLanyard({
	userId: 'USER_ID'
});

Using with websocket:

import { useLanyard, LanyardData } from '@leonardssh/use-lanyard';

await useLanyard({
	userId: 'USER_ID',
	socket: true,
	onPresenceUpdate(presence: LanyardData) {
		...
	}
});

๐ŸŽ‰ Thanks

๐Ÿ‘จโ€๐Ÿ’ป Contributing

To contribute to this repository, feel free to create a new fork of the repository and submit a pull request.

  1. Fork / Clone and select the main branch.
  2. Create a new branch in your fork.
  3. Make your changes.
  4. Commit your changes, and push them.
  5. Submit a Pull Request here!

๐Ÿ“‹ License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs

Package last updated on 13 Aug 2021

Did you know?

Socket

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.

Install

Related posts

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