0.1.0 • Published 3 years ago
rareid-utils v0.1.0
rareid-utils
Utilities for Rare.ID.
Installation
npm install rareid-utilsUsage
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
rare4danda-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
3 years ago