negezor / vk-io

Modern VK API SDK for Node.js

Home Page:https://npm.im/vk-io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Modern VK API SDK for Node.js

https://npm.im/vk-io

License:MIT License


Languages

Language:TypeScript 97.0%Language:JavaScript 3.0%Language:Shell 0.0%