Random String package provides functionality to generate a random string value.
$ npm install --save @glowyjs/random-string
import randomString from '@glowyjs/random-string';
randomString();
//=> 3Kekravwvb78vP9CQPP1vaRCgi4dZETOktxzf8pF5gufFqh8mOICMqjRP4y8UxoI
randomString(10);
//=> FxvqHNFNUu
randomString(10, '#@$%&+=');
//=> $+#%#&$$=@
Run tests
npm run test
The MIT License (MIT) Copyright (c) Sergey Romanenko