@radar/redshift-utils
Utilities used across REDSHIFT codebases
Last updated 10 months ago by cavan-radar .
MIT · Original npm · Tarball · package.json
$ cnpm install @radar/redshift-utils 
SYNC missed versions from official npm registry.

@radar/redshift-utils

Utilities used across REDSHIFT codebases

Installation

npm

npm install @radar/redshift-utils

yarn

yarn add @radar/redshift-utils

Usage - Validator

Import

import { validator } from '@radar/redshift-utils';

Methods

Validate Network

Determine if the passed network is valid

const isValid = await validator.isValidNetwork(network);

Validate On-Chain Ticker

Determine if the passed on-chain ticker is valid

const isValid = await validator.isValidOnchainTicker(ticker);

Validate Market

Determine if the passed market is valid

const isValid = await validator.isValidMarket(market);

Validate UUID

Determine if the passed UUID is valid

const isValid = await validator.isValidUUID(uuid);

Validate Base58Check

Determine if the passed string is valid base58check

const isValid = await validator.isValidBase58Check(s);

Validate Bech32

Determine if the passed string is valid bech32

const isValid = await validator.isValidBech32(s);

Validate Base58Check or Bech32

Determine if the passed string is valid base58check or bech32

const isValid = await validator.isValidBase58CheckOrBech32(s);

Validate Hex

Determine if the passed string is a valid hex

const isValid = await validator.isValidHex(s);

Validate Network & Subnet

Determine if the passed network and subnet are valid

const isValid = await validator.isValidNetworkAndSubnet(network, subnet);

Current Tags

  • 0.1.14                                ...           latest (10 months ago)

15 Versions

  • 0.1.14                                ...           10 months ago
  • 0.1.13                                ...           a year ago
  • 0.1.12                                ...           a year ago
  • 0.1.11                                ...           a year ago
  • 0.1.10                                ...           a year ago
  • 0.1.9                                ...           a year ago
  • 0.1.8                                ...           a year ago
  • 0.1.7                                ...           a year ago
  • 0.1.6                                ...           a year ago
  • 0.1.5                                ...           a year ago
  • 0.1.4                                ...           a year ago
  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 15
Dependencies (8)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |