New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

human-readable-random-string

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

human-readable-random-string

randomly generates a human readable strings

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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 :)

Keywords

random

FAQs

Package last updated on 04 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts