# @deriv/p2p

> p2p cashier

Latest version **0.7.3** (published 2020-10-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install @deriv/p2p
pnpm add @deriv/p2p
yarn add @deriv/p2p
bun add @deriv/p2p
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.7.3 |
| Published | 2020-10-20 |
| First published | 2020-03-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 17 |
| Unpacked size | 10.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | aaron-binary, negar-binary, zaki-binary, ashkanx |

## Links

- npm: https://www.npmjs.com/package/@deriv/p2p
- npm.io page: https://npm.io/package/@deriv/p2p

## Dependencies (17)

- [react](https://npm.io/package/react.md) ^16.8.6
- [crc-32](https://npm.io/package/crc-32.md) ^1.2.0
- [formik](https://npm.io/package/formik.md) ^2.1.4
- [i18next](https://npm.io/package/i18next.md) ^18.0.0
- [sendbird](https://npm.io/package/sendbird.md) ^3.0.122
- [react-dom](https://npm.io/package/react-dom.md) ^16.8.6
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [react-window](https://npm.io/package/react-window.md) ^1.8.5
- [@deriv/shared](https://npm.io/package/@deriv/shared.md) ^1.0.0
- [react-i18next](https://npm.io/package/react-i18next.md) ^11.0.0
- [sendbird-uikit](https://npm.io/package/sendbird-uikit.md) ^1.0.1
- [react-svg-loader](https://npm.io/package/react-svg-loader.md) ^3.0.3
- [@deriv/components](https://npm.io/package/@deriv/components.md) ^1.0.0
- [react-content-loader](https://npm.io/package/react-content-loader.md) ^4.3.2
- [react-virtualized-auto-sizer](https://npm.io/package/react-virtualized-auto-sizer.md) ^1.0.2
- [react-window-infinite-loader](https://npm.io/package/react-window-infinite-loader.md) ^1.0.5

## Recent versions

- 0.7.3 (latest) — 2020-10-20
- 0.7.2 — 2020-10-20
- 0.7.1 — 2020-10-20
- 0.7.0-beta2 — 2020-10-16
- 0.7.0-beta — 2020-10-16
- 0.6.0 — 2020-04-06
- 0.5.1 — 2020-03-09

## README

<h1 align="center">
  @deriv/p2p
</h1>

## Index

-   [General](docs/README.md) - Contains general philosophy and overview of this package
-   [Modules docs](docs/Modules/README.md) - Contains implementation guides (i.e., scaffolding, code usage)

## Requirements

-   node
-   npm

## Editor helpers

-   Prettier setup in your editor https://prettier.io/
-   Stylelint setup in your editor https://stylelint.io/
-   Eslint setup in your editor https://eslint.org/

## 🚀 Quick start

1.  **Install your dependencies:**

    ```sh
    npm ci
    ```

2.  **To build publish file:**

    ```sh
    npm run build
    ```

3.  **Libary usage:**

    ```js
    import P2P from '@deriv/p2p';

    <P2P />;
    ```

4.  **File Structure**

```
src
    ├── components/
    │   ├── ads/
    │   │   ├── ads.js
    │   │   ├── ads.scss
    │   ├── orders/
    │   │   ├── orders.js
    │   │   ├── orders.scss
    │   ├── ...
    │   └── app.jsx
    ├── utils/
    │   ├── timer.js // TODO
    │   ├── ...
    ├── index.js

index.js // publish file
webpack.config.js
package.json
```

5. **Translations**

Update translations in Crowdin and get new translations from Crowdin

Requirements:

-   Crowdin CLI: https://support.crowdin.com/cli-tool/#installation
-   `CROWDIN_API_KEY` environment variables to your `~/.bash_profile`

1. Run the script below

```sh
    sh scripts/update-translations.sh
```

-   Extracts new translations strings and pushes them to Crowdin
-   Fetches new translations strings from Crowdin

2.  Make a PR from the newly created branch `p2p_translations` to dev

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