Fix readme.md (fix package name)

This commit is contained in:
Nikiroy78 2023-07-12 12:52:03 +03:00
parent 82813ceb71
commit 1f60fe8305
2 changed files with 32 additions and 5 deletions

View File

@ -1,5 +1,32 @@
{
"dependencies": {
"sync-request": "^6.1.0"
}
},
"name": "vk_api",
"description": "**installation:**\r ```bash\r npm i vk_api\r ```\r ## How to use",
"version": "0.0.1",
"main": "index.js",
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Nikiroy78/npm-vk-api-sync.git"
},
"keywords": [
"vk_api",
"vkApi",
"requests",
"API",
"vk",
"vkontakte",
"sync"
],
"author": "FullGreaM",
"license": "ISC",
"bugs": {
"url": "https://github.com/Nikiroy78/npm-vk-api-sync/issues"
},
"homepage": "https://github.com/Nikiroy78/npm-vk-api-sync#readme"
}

View File

@ -2,7 +2,7 @@
**installation:**
```bash
npm i vk_api
npm i vk-api-sync
```
## How to use
@ -10,7 +10,7 @@ npm i vk_api
You can logged in with use login and password:
```node
const vkApi = require('vk_api');
const vkApi = require('vk-api-sync');
const vk = new vkApi.VkApi({
login : '+78005553535',
password : 'qwerty123'
@ -18,7 +18,7 @@ const vk = new vkApi.VkApi({
```
or with use access_token
```node
const vkApi = require('vk_api');
const vkApi = require('vk-api-sync');
const vk = new vkApi.VkApi({
access_token : "ACCESS_TOKEN_STRING"
});
@ -26,7 +26,7 @@ const vk = new vkApi.VkApi({
**Additional parametrs**
In constructor you can edit **api_version**, **api_server** and **oauth_server**:
```node
const vkApi = require('vk_api');
const vkApi = require('vk-api-sync');
const authOptions = { /* Another auth params */ };
const API_VERSION = "5.75";