multiformats
Version:
Interface for multihash, multicodec, multibase and CID
16 lines (13 loc) • 330 B
text/typescript
import { baseX } from './base.ts'
export const base36 = baseX({
prefix: 'k',
name: 'base36',
alphabet: '0123456789abcdefghijklmnopqrstuvwxyz',
caseInsensitive: true
})
export const base36upper = baseX({
prefix: 'K',
name: 'base36upper',
alphabet: '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ',
caseInsensitive: true
})