# @cosmic-plus/base

> Various base modules related to Stellar

Latest version **2.11.0** (published 2021-09-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cosmic-plus/base
pnpm add @cosmic-plus/base
yarn add @cosmic-plus/base
bun add @cosmic-plus/base
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.11.0 |
| Published | 2021-09-17 |
| First published | 2018-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 52.7 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | MisterTicot |
| Maintainers | misterticot |

## Links

- npm: https://www.npmjs.com/package/@cosmic-plus/base
- Repository: https://github.com/cosmic-plus/js-base
- Homepage: https://cosmic.plus/#view:js-base
- Issues: https://github.com/cosmic-plus/js-base/issues
- npm.io page: https://npm.io/package/@cosmic-plus/base

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.21.4
- [stellar-sdk](https://npm.io/package/stellar-sdk.md) ^8.3.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.15.4
- [@kisbox/helpers](https://npm.io/package/@kisbox/helpers.md) ^1.0.0-beta.21

## Recent versions

- 2.11.0 (latest) — 2021-09-17
- 2.10.0 — 2021-01-08
- 2.9.0 — 2020-11-08
- 2.8.1 — 2020-09-12
- 2.8.0 — 2020-06-14
- 2.7.0 — 2020-05-24
- 2.6.1 — 2020-05-04
- 2.6.0 — 2020-04-11
- 2.5.2 — 2019-12-07
- 2.5.1 — 2019-11-27
- 2.5.0 — 2019-11-27
- 2.4.0 — 2019-10-26
- 2.3.1 — 2019-10-05
- 2.3.0 — 2019-09-28
- 2.2.0 — 2019-09-07
- … 19 more at https://npm.io/package/@cosmic-plus/base/versions

## README

**base /**
[Readme](https://cosmic.plus/#view:js-base)
• [Contributing](https://cosmic.plus/#view:js-base/CONTRIBUTING)
• [Changelog](https://cosmic.plus/#view:js-base/CHANGELOG)

# Readme

![Licence](https://img.shields.io/github/license/cosmic-plus/js-base.svg)
[![Dependencies](https://badgen.net/david/dep/cosmic-plus/js-base)](https://david-dm.org/cosmic-plus/js-base)
![Vulnerabilities](https://snyk.io/test/npm/@cosmic-plus/base/badge.svg)
![Downloads](https://badgen.net/npm/dt/@cosmic-plus/base)
![Bundle](https://badgen.net/badgesize/gzip/cosmic-plus/js-base-web/master/base.js?label=bundle)

This package contains various modules related to Stellar on which higher-level
cosmic-plus libraries depends.

_Note:_ This is an internal library and may be modified in
compatibility-breaking ways.

## Install & Import

- **Npm** `npm install @cosmic-plus/base`
- **Yarn** `yarn add @cosmic-plus/base`

Then: `const { $module, ... } = require("@cosmic-plus/base")`

To pick a module: `const $module = require("@cosmic-plus/base/es5/$module")`

## Modules

### Configuration

- `wallets`: A list of wallets that accept arbitrary Stellar transactions as
  input.

### Utils

- `friendbot`: A function that fund a wallet on testnet: `frienbot(publicKey)`.

### Dispatchers

Dispatchers implements different way to load modules depending on whether the
environment is Node.js or browser.

- `axios` Get _Axios_ from StellarSdk when using browser environment to save
  loading time.
- `buffer` Get _Buffer_ from StellarSdk when using browser environment to save
  loading time.
- `stellar-sdk` Get _StellarSdk_ from global environment when using browser
  environment.

## Additional Resources

## Links

**Organization:** [Cosmic.plus](https://cosmic.plus/) | [@GitHub](https://git.cosmic.plus) | [@NPM](https://www.npmjs.com/search?q=cosmic-plus)

**Follow:** [Reddit](https://reddit.com/r/cosmic_plus) | [Twitter](https://twitter.com/cosmic_plus) | [Medium](https://medium.com/cosmic-plus) | [Codepen](https://codepen.io/cosmic-plus)

**Talk:** [Telegram](https://t.me/cosmic_plus) | [Keybase](https://keybase.io/team/cosmic_plus)

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