UNPKG

@js-random/string

Version:

A simple and lightweight string randomizer for JavaScript (TypeScript friendly)

10 lines (7 loc) 169 B
import randomString from './index'; declare global { interface StringConstructor { random: typeof import('./index').default; } } String.random = randomString;