Essential Cosmos
Ultralight Cosmos utilities for JS and TS
- 🏎 The TINIEST code size possible
- ʦ Fully typed with TypeScript (also works with JavaScript)
- 🌲 Tree-shaking and no side-effects
- 🙌 Supports multiple JS versions (CommonJS and ESM)
- ✅ Node 18, 16, 14, & 12
- ✅ Web
npm install --save essential-cosmos # TypeScript types load automatically
# or if you prefer yarn
yarn add essential-cosmos # TypeScript types load automatically
import { isCosmosAddress } from 'essential-cosmos';
// or in a commonJS environment
const { isCosmosAddress } = require('essential-cosmos');
Returns a boolean
isCosmosAddress(address:string): Boolean
View Example
import { isCosmosAddress } from 'essential-cosmos';
isCosmosAddress('cosmos15hmqrc245kryaehxlch7scl9d9znxa58qkpjet');
// true
isCosmosAddress('osmo100a325n9ct4m2egvctrh48zheg2hwl5lr26rzy');
// false
- isCosmosAddress
- isJunoAddress
- isOsmosisAddress
- isPersistenceAddress
- isAgoricAddress
- isAkashAddress
- isAssetMantleAddress
- isAxelarAddress
- isBandProtocolAddress
- isBitCannaAddress
- isBitsongAddress
- isCarbonAddress
- isCerberusAddress
- isCertikAddress
- isCheqdAddress
- isChihuahuaAddress
- isComdexAddress
- isCrescentAddress
- isCronosAddress
- isDecentrAddress
- isDigAddress
- isEvmosAddress
- isFetchaiAddress
- isFirmachainAddress
- isGalaxyAddress
- isGravityBridgeAddress
- isInjectiveAddress
- isIrisAddress
- isIxoAddress
- isKavaAddress
- isKiAddress
- isKonstellationAddress
- isLikeCoinAddress
- isLumAddress
- isMediblocAddress
- isMemeAddress
- isMicrotickAddress
- isOraichainAddress
- isProvenanceAddress
- isRegenAddress
- isRizonAddress
- isSecretAddress
- isSentinelAddress
- isSifchainAddres
- isStarnameAddress
- isTerraAddress
- isUmeeAddress
- isVidulumAddress
- isStargazeAddress