Utilities for Rare.ID.
npm install rareid-utils
import { detectPatterns } from 'rareid-utils';
// Detect pattern of a domain
console.log(detectPatterns('0311.eth'));
// > Set(4) { 'ABCC', '0XXX', '10K', 'MMDD' }
Currently only digits pattern (except
rare4d
anda-share-code
) defined at Rare.ID are supported
Returns a set of detected patterns of the given domain.
Type: string
Any domain, e.g: 0311.eth
.