botmilovien-api
Advanced tools
Comparing version 1.0.5 to 2.5.0-beta
{ | ||
"name": "botmilovien-api", | ||
"version": "1.0.5", | ||
"description": "", | ||
"main": "index.js", | ||
"version": "2.5.0-beta", | ||
"description": "API module of bot milovien", | ||
"main": "api.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/ostrovsky-swedesdart/botmilovien-api.git" | ||
}, | ||
"keywords": [ | ||
"api" | ||
], | ||
"author": "https://github.com/ostrovsky-swedesdart", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/ostrovsky-swedesdart/botmilovien-api/issues" | ||
}, | ||
"homepage": "https://github.com/ostrovsky-swedesdart/botmilovien-api#readme" | ||
"keywords": ["api"], | ||
"author": "", | ||
"license": "MIT" | ||
} |
@@ -1,9 +0,45 @@ | ||
# Using to api milovien bot: | ||
<p align='center'> | ||
<a href="https://www.npmjs.com/package/botmilovien-api"><img src="https://img.shields.io/npm/v/botmilovien-api.svg?style=flat-square" alt="NPM version"></a> | ||
</p> | ||
```js | ||
import milovien from "botmilovien-api"; | ||
<p align='center'><img src='https://img.shields.io/badge/code%20style-standard-brightgreen.svg'></img></p> | ||
<p align='center'><img src='https://img.shields.io/npm/dt/botmilovien-api.svg'></img></p> | ||
const body = milovien.get(ID); | ||
> **[Node.js](https://nodejs.org/) 12.20.0 or newer is required** | ||
console.log(body) // { balance: ..., name: ..., rating: ..., regDate: ... } | ||
``` | ||
## 🎃 Installion | ||
```shell | ||
yarn add botmilovien-api | ||
``` | ||
- **Using `npm`** | ||
```shell | ||
npm i botmilovien-api | ||
``` | ||
- **Using `pnpm`** | ||
```shell | ||
pnpm add botmilovien-api | ||
``` | ||
## 📖 Usage API | ||
```javascript | ||
import { API, Method } from "botmilovien-api" | ||
const api = new API ({ | ||
api_key: ``, | ||
source: `api` // default | ||
}) | ||
async function getResponse () { | ||
return await new MethodAPI () | ||
.api | ||
.use ( | ||
{ | ||
system: "getprofile", | ||
ID: 15 | ||
} | ||
) | ||
} | ||
getResponse () // response | ||
``` |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2551
4
41
45
2
3
2