# payment-api-core-embonor

> Core for Embonor Payment API services

Latest version **0.0.11** (published 2020-08-07) · UNLICENSED license · 0 weekly downloads

## Install

```sh
npm install payment-api-core-embonor
pnpm add payment-api-core-embonor
yarn add payment-api-core-embonor
bun add payment-api-core-embonor
```

## 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.11 |
| Published | 2020-08-07 |
| First published | 2020-06-24 |
| Weekly downloads | 0 |
| License | UNLICENSED |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 12.18.2 |
| Dependencies | 5 |
| Unpacked size | 39.1 KB |
| Known vulnerabilities | 0 (+30 in 2 direct dependencies) |
| Install scripts | no |
| Author | David Antunes |
| Maintainers | dconchamanzor |

## Links

- npm: https://www.npmjs.com/package/payment-api-core-embonor
- Repository: git@gitlab.k8s.acidlabs.io:embonor/payment-api/payment-api-core
- npm.io page: https://npm.io/package/payment-api-core-embonor

## Dependencies (5)

- [pg](https://npm.io/package/pg.md) ^8.2.1
- [axios](https://npm.io/package/axios.md) ^0.19.2
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [sequelize](https://npm.io/package/sequelize.md) ^5.21.9
- [fluent-logger](https://npm.io/package/fluent-logger.md) ^3.2.0

## Recent versions

- 0.0.11 (latest) — 2020-08-07
- 0.0.10 — 2020-08-07
- 0.0.9 — 2020-08-04
- 0.0.8 — 2020-07-30
- 0.0.7 — 2020-07-22
- 0.0.6 — 2020-07-13
- 0.0.5 — 2020-06-24

## README

# Payment API Core

Core for Embonor Payment API services

<br>

---

## Install and configure

``` bash
# Package to manage multiple npm configurations
sudo npm i npmrc -g

# Configure default profile
npmrc -c default
npm config set registry https://registry.npmjs.org/
cat ~/.npmrcs/default
cat ~/.npmrc

# Configure embonor profile
npmrc -c embonor
npm config set registry https://registry.npmjs.org/
npm config set @embonor:registry https://test-embonor-885567047296.d.codeartifact.us-east-1.amazonaws.com/npm/test-payment-api-core/
cat ~/.npmrcs/embonor
cat ~/.npmrc


# First login
npmrc embonor
AWS_REGION=us-east-1 aws codeartifact login \
  --profile embonor \
  --tool npm --repository test-payment-api-core --domain test-embonor --domain-owner 885567047296
npm config set registry https://registry.npmjs.org/

# Test permission to read and publish from registry
npm -d ping
```

<br>

---

## Publish a new version

``` bash
# First, edit `package.json` and pump it to a new version

# Set correct profile
npmrc embonor

# Login to private registry
AWS_REGION=us-east-1 aws codeartifact login \
  --profile embonor \
  --tool npm --repository test-payment-api-core --domain test-embonor --domain-owner 885567047296

# Update default registry
npm config set registry https://registry.npmjs.org/

# Publish with correct scope
npm publish --scope=@embonor
```

<br>

---

## Use in a package.json

``` bash
# package.json

...

"dependencies": {
  ...
  "@embonor/payment-api-core": "^0.x"
},

...
```

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