
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
@marlock/node-vk-api
Advanced tools
Supply Chain Security
Vulnerability
Quality
Maintenance
License
Native-like vk API module
Get to your project deirectory
Install module using npm
npm install node-vk-api
or using yarn
yarn add node-vk-api
const API = require('node-vk-api'),
vkAPI = new API({
token: 'your_secret_token',
version: '5.73' //actual version
});
const API = require('node-vk-api'),
vkAPI = new API({
token: 'your_secret_token',
version: '5.73',
proxy: 'http://someproxy.com:80',
});
You can use not only http proxy. For example, use https proxy
const API = require('node-vk-api'),
vkAPI = new API({
token: 'your_secret_token',
version: '5.73',
proxy: 'https://someproxy.com:443',
});
Some servers need to be used in non-strict TLS mode. For now, there are no instumentary to do following. Temporary fix:
const API = require('node-vk-api'),
vkAPI = new API({
token: 'your_secret_token',
version: '5.73',
proxy: 'https://someproxy.com:443',
});
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
You can use own user-agent
const API = require('node-vk-api'),
vkAPI = new API({
token: 'your_secret_token',
version: '5.73',
userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) ArchLinux Chromium/64.0.3282.167 Chrome/64.0.3282.167 Safari/537.36'
});
Supported all the method in native-like way with promises. (You can use it in await/async mode)
var vkAPI = new API({
token: 'your_secret_token',
version: '5.73'
});
vkAPI.messages.getHistory({
peer_id: 2000000002,
count: 200,
rev: 1
}).then(data => {
console.log(data)
}).catch(err => {
console.log('Got error:');
console.error(err)
})
FAQs
Native-like vk API module
The npm package @marlock/node-vk-api receives a total of 0 weekly downloads. As such, @marlock/node-vk-api popularity was classified as not popular.
We found that @marlock/node-vk-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.