Skip to content

timse/human-readable-random-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Human Readable Random String

Creates a random (as far as Math.random is random) string that is readable for humans. This can be used to generate passwords or usernames that can be remembered less hard (wouldn't say its easy :)).

how do i use it?

As human-readable-random-string is UMD you can either require it or load it directly into your browser

require/import

import hrrs from 'human-readable-random-string';

hrrs(20);
//=> "hasewupimilovobaheze"

global in browser

<script src="some/path/to/hrrs.js"></script>
<script>
const string = hrrs(20);
</script>

parameters

hrrs accepts one param length which determines the length of the string you want it to return. Thats about it :)

About

Create a human readable random string

Resources

Stars

Watchers

Forks

Packages

No packages published