correcthorse

See XKCD for reference!

Usage no npm install needed!

<script type="module">
  import correcthorse from 'https://cdn.skypack.dev/correcthorse';
</script>

README

correcthorse

See XKCD for reference!

xkcd.png

Install

npm install correcthorse --save

correcthorse(options?)

You'll get back a random strong and readable password

var correcthorse = require('correcthorse');
correcthorse();
// <- 'correct-horse-battery-staple'

You can set a couple of options.

  • length is the minimum character length allowed
  • words is the minimum word count allowed

CLI

$ correcthorse
correct-horse-battery-staple

License

MIT