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

vksnake

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vksnake

  • 1.0.5-update
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

NPM version

📦 Installation

Node.js 12.20.0 or newer is required

  • Using Yarn (recommended)

    yarn add vksnake
    
  • Using npm

    npm i vksnake
    
  • Using pnpm

    pnpm add vksnake
    
  • Usage to methods VK

import { Method, VK } from 'vksnake';

const vk = new VK({ 
token: process.env.TOKEN
})

async function method () {

const body = await new Method().use('users.get', {
user_id: 501
})

console.log(body)

}

method ()
import { Method, VK } from 'vksnake';

const vk = new VK({
token: process.env.TOKEN
})

async function method () {

const body = await new Method().use('wall.get', {
owner_id: 1
})

console.log(body)

}

method ()

Usage to method

import { Method, VK } from 'vksnake';

const vk = new VK({
token: process.env.TOKEN
})

async function method () {

const body = await new Method().getInfoUser(501, { user_id: 501 })

console.log(body)

}

method()

Send message in chat

import { Method, VK, getRandomId } from 'vksnake';

const vk = new VK({
token: ''
})

async function method () {

const body = await new Method().use('messages.send', {
random_id: getRandomId(),
peer_id: ...userId or chatId,
message: 'Привет'
})

console.log(body) // Object
}

// or

async function method () {

const body = await new Method().send('Привет', {
senderId: ...userId or chatId
})

console.log(body) // Object
}

Checking token

import { Method, VK } from 'vksnake';

const vk = new VK({
token: process.env.TOKEN
})

const body = new Method().secretSnake();

console.log(body) // Boolean

Support

Пожертвовать / Support

Ник QIWI: NODEJSLUPUS

Contacts

- VK

- GitHub

FAQs

Package last updated on 17 Aug 2022

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