# thepeer-node

> The official node package for Thepeer

Latest version **0.0.1** (published 2021-10-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install thepeer-node
pnpm add thepeer-node
yarn add thepeer-node
bun add thepeer-node
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-10-14 |
| First published | 2021-10-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 24.6 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Thepeer |
| Maintainers | thepeer |

## Links

- npm: https://www.npmjs.com/package/thepeer-node
- Repository: https://github.com/thepeerstack/node-sdk
- Homepage: https://github.com/thepeerstack/node-sdk#readme
- Issues: https://github.com/thepeerstack/node-sdk/issues
- npm.io page: https://npm.io/package/thepeer-node

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.21.4

## Recent versions

- 0.0.1 (latest) — 2021-10-14

## README

# Thepeer node

## Installation

```bash
npm i thepeer-node
```

## Usage

```js
const thepeer = new Thepeer(secretKey)

let user = thepeer.indexUser("Thor Odin", "thor", "thor@odin.com");
```

### Available methods

* validateSiganture
    - `accepts`: 
        - request (object)
        - signature (object)
    - `returns`: boolean
    
* getSendReceipt
    - `accepts`: 
        - receipt_id (string)
    - `returns`: object
    
* processSendReceipt
    - `accepts`: 
        - receipt_id (string)
        - insufficient_funds (bool)
    - `returns`: object
    
* indexUser
    - `accepts`:
        - name (string)
        - email (string)
        - identifier (string)
    - `returns`: object
        
* updateUser
    - `accepts`:
        - reference (string)
        - identifier (string)
    - `returns`: object
        
* deleteUser
    - `accepts`:
        - reference (string)
    - `returns`: boolean
    
* getLink
    - `accepts`:
        - lind_id (string)
    - `returns`: object

* chargeLink
    - `accepts`:
        - lind_id (string)
        - amount (integer)
    - `returns`: object
    
* authorizaDirectCharge
    - `accepts`:
        - reference (string)
        - insufficient_funds (bool)
    - `returns`: object

## Extra

Refer to the [documentation](https://docs.thepeer.co) for more information.

---
_Source: https://npm.io/package/thepeer-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
