# nestjs-wepay4u-booster

> Scripts para automatizar la creacion de clases comunes en proyectos de wepay

Latest version **1.3.2** (published 2023-08-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install nestjs-wepay4u-booster
pnpm add nestjs-wepay4u-booster
yarn add nestjs-wepay4u-booster
bun add nestjs-wepay4u-booster
```

Provides the command `nwb`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.2 |
| Published | 2023-08-15 |
| First published | 2023-07-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 32.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jhomove |
| Maintainers | jhomove |

## Links

- npm: https://www.npmjs.com/package/nestjs-wepay4u-booster
- npm.io page: https://npm.io/package/nestjs-wepay4u-booster

## Dependencies (3)

- [commander](https://npm.io/package/commander.md) ^11.0.0
- [typescript](https://npm.io/package/typescript.md) ^5.1.6
- [@types/node](https://npm.io/package/@types/node.md) ^20.4.2

## Recent versions

- 1.3.2 (latest) — 2023-08-15
- 1.3.1 — 2023-08-15
- 1.3.0 — 2023-08-14
- 1.2.9 — 2023-08-11
- 1.2.8 — 2023-08-11
- 1.2.7 — 2023-08-10
- 1.2.6 — 2023-08-10
- 1.2.5 — 2023-08-10
- 1.2.4 — 2023-08-08
- 1.2.3 — 2023-08-08
- 1.2.2 — 2023-08-04
- 1.2.1 — 2023-08-04
- 1.2.0 — 2023-08-04
- 1.1.9 — 2023-08-04
- 1.1.8 — 2023-08-03
- … 18 more at https://npm.io/package/nestjs-wepay4u-booster/versions

## README

# NESTJS-WEPAY4U-BOOSTER

Proyecto que busca facilitar la creacion de archivos necesarios en proyectos de nest
Para ejecutar los comandos y testear:
## Archivos generales
npx ts-node src/index.ts generate [command name] [file name]
## Inpector
npx ts-node src/index.ts generate inspector ['api name']

## Comando para correr en otros proyectos
npx nestjs-wepay4u-booster generate [command name] ['api name']

## Instalación de la librería: npm install --save-dev nestjs-wepay4u-booster
## Implementación:
    npx nestjs-wepay4u-booster generate inspector 'nombreRepositorio'
## Validaciones Adicionales:
 Tener en cuenta que este proyecto crea algunas variables que ya puede estar creadas, validar las mismas.
## Ejecutar proyecto:
 Validar correcta ejecución del proyecto
## Config Files:
 Agregar variable config files en cada ambiente del proyecto
    inspector:
    url: https://dev-inspector.wepay4u.com/v1

## Encriptacion:
  Para el caso de inspector donde se encripta el contenido del response o request debido a que este supera los 10000 caracteres, se puede desencriptar con la siguiente funcion: 
  import * as crypto from 'crypto'
  import * as zlib from 'zlib'
  export const decryptData = (encryptedText, key) => {
    const decipher = crypto.createDecipher('aes-256-cbc', key);
    let decrypted = decipher.update(encryptedText, 'hex', 'hex');
    decrypted += decipher.final('hex');
    const decompressed = zlib.inflateSync(Buffer.from(decrypted, 'hex')).toString();
    return decompressed;
  }

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