Skip to content

negezor/vk-io

Repository files navigation

NPM version Build Status NPM downloads

VK-IO - This is a powerful Node.js module that allows you to easily interact with the VK API 🚀

📖 Documentation 🤖 Examples

Features

  1. Complete. 100% coverage of the VK API
  2. Simple. Predictable abstraction of VK API. 1 to 1 mapping of API method
    vk.api.users.get({ ... });
  3. Reliable. The library is written in TypeScript and covered by tests.
  4. Modern. The library comes with native ESM support
  5. Powerful. Supports following additional features:

📦 Installation

Node.js 12.20.0 or newer is required

  • Using npm (recommended)
    npm i vk-io
  • Using Yarn
    yarn add vk-io
  • Using pnpm
    pnpm add vk-io

Example usage

import { VK } from 'vk-io';

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

async function run() {
    const response = await vk.api.wall.get({
        owner_id: 1
    });

    console.log(response);
}

run().catch(console.log);

Community

Useful modules that may be useful to you

If you want to add your module in the list, create a new issue in the repository.