0.1.0 • Published 1 year ago
rareid-utils v0.1.0
rareid-utils
Utilities for Rare.ID.
Installation
npm install rareid-utils
Usage
import { detectPatterns } from 'rareid-utils';
// Detect pattern of a domain
console.log(detectPatterns('0311.eth'));
// > Set(4) { 'ABCC', '0XXX', '10K', 'MMDD' }
API
detectPatterns(domain)
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.
domain
Type: string
Any domain, e.g: 0311.eth
.
0.1.0
1 year ago