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:
;; const schema = address: mongooseSchemaTypesEthereumAddress;
You can also use it with arrays:
const schema = addresses: type: mongooseSchemaTypesEthereumAddress ;
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