Cluster
getClusterName()

Returns a parsed name from your cluster name.

import { getClusterName } from '@lndgalante/solutils';
 
const { clusterName } = getClusterName('mainnet-beta');
 
console.log(clusterName); // "Mainnet"