# mongoose-type-ethereum-address

> An Ethereum address field-type for Mongoose schemas.

Latest version **1.1.5** (published 2020-03-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install mongoose-type-ethereum-address
pnpm add mongoose-type-ethereum-address
yarn add mongoose-type-ethereum-address
bun add mongoose-type-ethereum-address
```

## 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.1.5 |
| Published | 2020-03-20 |
| First published | 2019-04-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Federico Luzzi |
| Maintainers | fluzzi |
| Keywords | mongoose, types, ethereum, address, schema |

## Links

- npm: https://www.npmjs.com/package/mongoose-type-ethereum-address
- Repository: https://github.com/luzzif/mongoose-type-ethereum-address
- Issues: https://github.com/luzzif/mongoose-type-ethereum-address/issues
- npm.io page: https://npm.io/package/mongoose-type-ethereum-address

## Dependencies (2)

- [mongoose](https://npm.io/package/mongoose.md) ^5.7.12
- [web3-utils](https://npm.io/package/web3-utils.md) ^1.2.4

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.1.5 (latest) — 2020-03-20
- 1.1.4 — 2019-11-26
- 1.1.3 — 2019-10-15
- 1.1.2 — 2019-10-14
- 1.1.0 — 2019-04-10
- 1.0.0 — 2019-04-10

## README

[![CircleCI](https://circleci.com/gh/luzzif/mongoose-type-ethereum-address/tree/master.svg?style=svg)](https://circleci.com/gh/luzzif/mongoose-type-ethereum-address/tree/master)
[![Coverage](https://coveralls.io/repos/github/luzzif/mongoose-type-ethereum-address/badge.svg?branch=master)](https://coveralls.io/repos/github/luzzif/mongoose-type-ethereum-address?branch=master)

# Mongoose Ethereum address type

An Ethereum address field-type for Mongoose schemas.

## Installing

```
yarn add mongoose-type-ethereum-address
```

## Usage

This will correctly validate an Ethereum's address Mongoose model's field:

```js
import mongoose from "mongoose";
import "mongoose-type-ethereum-address";

export const schema = new mongoose.Schema({
  address: mongoose.Schema.Types.EthereumAddress
});
```

You can also use it with arrays:

```js
export const schema = new mongoose.Schema({
  addresses: [{ type: mongoose.Schema.Types.EthereumAddress }]
});
```

## Donations

Please if you like my work consider donating something. Every offer helps me
giving out the best software!

- Bitcoin: `3JFXQE6mQibmrxoq3YHKqRUHAvmXxuY8r9`
- Ethereum: `0x35E2acD3f46B13151BC941daa44785A38F3BD97A`

Thank you all <3

---
_Source: https://npm.io/package/mongoose-type-ethereum-address · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
