2.0.1 • Published 1 year ago

@emiljohansson/random-string v2.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

random-string

Generates a random string.

Install

$ npm install @emiljohansson/random-string

Usage

import randomString from 'random-string'
randomString()
// => '1k59GeX6Nn'

API

randomString(props) => string;

Returns a random string.

length

Type: number

Optional length of the string. Default is 10.

letters

Type: boolean

Includes alphabetical letters in the string. Default is true.

numeric

Type: boolean

Includes numbers in the string. Default is true.

symbols

Type: boolean

Includes special characters in the string. Default is false.

License

MIT © Emil Johansson

2.0.1-3

1 year ago

2.0.1-2

1 year ago

2.0.1-1

1 year ago

2.0.1-0

1 year ago

2.0.0-0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago