open-index/open-npm huggingface dataset:
npm package: @moneyprotocol/lib-base
Description: Moneyp SDK shared interfaces
Author: Daniel Simon
Latest version: 5.4.3-stable-testnet

# @moneyprotocol/lib-base

Shared interfaces and classes of the Moneyp SDK.

Needs to be installed in order to use other Moneyp SDK packages, for example [@moneyprotocol/lib-ethers](https://www.npmjs.com/package/@moneyprotocol/lib-ethers).

## API Reference

For now, it can be found in the public Moneyp [repo](https://github.com/moneyp/moneyp/blob/master/docs/sdk/lib-base.md).
npm package: @moneyprotocol/lib-ethers
Description: Moneyp SDK Bitcoins-based implementation
Author: Daniel Simon
Latest version: 5.4.3-stable-testnet

# @moneyprotocol/lib-ethers

[Bitcoins](https://www.npmjs.com/package/ethers)-based library for reading Moneyp protocol state and sending transactions.

## Quickstart

Install in your project:

```
npm install --save @moneyprotocol/lib-base @moneyprotocol/lib-ethers ethers@^5.0.0
```

Connecting to an Ethereum node and sending a transaction:

```javascript
const { Wallet, providers } = require("ethers");
const { BitcoinsMoneyp } = require("@moneyprotocol/lib-ethers");

async function example() {
  const provider = new providers.JsonRpcProvider("http://localhost:8545");
  const wallet = new Wallet(process.env.PRIVATE_KEY).connect(provider);
  const moneyp = await BitcoinsMoneyp.connect(wallet);

  const { newVault } = await moneyp.openVault({
    depositCollateral: 5, // RBTC
    borrowBPD: 2000
  });

  console.log(`Successfully opened a Moneyp Vault (${newVault})!`);
}
```

## More examples

See [packages/examples](https://github.com/moneyp/moneyp/tree/master/packages/examples) in the repo.

Moneyp's [Dev UI](https://github.com/moneyp/moneyp/tree/master/packages/dev-frontend) itself contains many examples of `@moneyprotocol/lib-ethers` use.

## API Reference

For now, it can be found in the public Moneyp [repo](https://github.com/moneyp/moneyp/blob/master/docs/sdk/lib-ethers.md).
npm package: @moneytree/mask-pii
Description: Mask PII in strings
Author: Ron Korving
Latest version: 0.1.0

# mask-pii

JavaScript / Node.js module for masking PII in strings.

Currently only e-mail address and domain name masking are supported.
Pull requests to add masking for other PII very welcome.

We maintain 100% test coverage.

## Installation

```sh
npm install @moneytree/mask-pii --save
```

## Usage

```js
const { string, email, domain } = require('mask-pii');

string('foobar', '#');           // f########r
domain('sub.example.com');       // s********e.com
email('bob.foobar@example.com'); // b********r@e********e.com
```

## License

MIT
npm package: @moneytree/mt-link-javascript-sdk
Description: Moneytree Link JavaScript SDK
Author: Moneytree
Latest version: 4.3.0

# Moneytree Link JavaScript SDK

[![NPM Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fregistry.npmjs.org%2F%40moneytree%2Fmt-link-javascript-sdk&query=%24%5B'dist-tags'%5D%5B'latest'%5D&logo=npm&label=%40moneytree%2Fmt-link-javascript-sdk&color=14BF31)](https://www.npmjs.com/package/@moneytree/mt-link-javascript-sdk)

This is a library for browser client to help you integrate Moneytree tools such as My Account and the Vault without having to do worry about the complex configurations.

## For SDK Users

Read the [documentation](https://moneytree.github.io/mt-link-javascript-sdk/) for more information.

## For SDK Maintainers

```bash
yarn install
yarn lint       # runs eslint
yarn test       # runs all the tests
yarn build      # bundles the library
```

There is a minimal sample application in the `sample` directory.

### Documentation

```bash
yarn build:docs # bundles the documentation
yarn start:docs # Serves the documentation
```

We use [docsify](https://docsify.js.org/) to serve the documentation landing page (`docs/README.md`) and [typedoc](https://typedoc.org/) to generate the API documentation (`docs/types`).

### Publishing

```bash
npm version (patch|minor|major) # chose the right version bump based on the changes, see https://semver.org
# after merging the new version to master
npm login
npm publish
```