@marshal93/random-string
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@marshal93/random-string

获取一个随机字符串,默认获取 6 位字符,默认字符集合 ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789

EXAMPLE

使用

import randomString from '@marshal93/random-string';

randomString();
// 更改长度
randomString(2);
// 更改长度和随机集合
randomString(3, '0123456789');

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i @marshal93/random-string

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    3.93 kB

    Total Files

    7

    Last publish

    Collaborators

    • marshal93