js-moi-utils
Version:
Collection of utility functions used in js-moi-sdk.
60 lines (41 loc) • 2.56 kB
Markdown

[latestrelease]: https://github.com/sarvalabs/js-moi-sdk/releases/latest
[issueslink]: https://github.com/sarvalabs/js-moi-sdk/issues
[pullslink]: https://github.com/sarvalabs/js-moi-sdk/pulls
[pkgdocs]: https://docs.moi.technology/docs/build/packages/js-moi-sdk
[][pkgdocs]
[](https://npmjs.com/js-moi-sdk)

[][latestrelease]
[][issueslink]
[][pullslink]

# js-moi-utils
This is a sub-package of [js-moi-sdk](https://github.com/sarvalabs/js-moi-sdk).
The **js-moi-utils** package offers a comprehensive set of tools and functions to enhance development with MOI. It provides utility functions that simplify common tasks, making your development experience smoother and more efficient.
## Installation
Install the latest [release](https://github.com/sarvalabs/js-moi-sdk/releases) using the following command.
```sh
npm install js-moi-utils
```
## Usage
```javascript
import { isValidAddress } from "js-moi-utils";
const isValid = isValidAddress("0xd210e094cd2432ef7d488d4310759b6bd81a0cda35a5fcce3dab87c0a841bdba")
console.log(isValid)
// Output
/*
true
*/
```
## Contributing
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as below, without any additional terms or conditions.
## License
© 2023 Sarva Labs Inc. & MOI Protocol Developers.
This project is licensed under either of
- [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0) ([`LICENSE-APACHE`](LICENSE-APACHE))
- [MIT license](https://opensource.org/licenses/MIT) ([`LICENSE-MIT`](LICENSE-MIT))
at your option.
The [SPDX](https://spdx.dev) license identifier for this project is `MIT OR Apache-2.0`.