0.1.3 • Published 4 years ago

passport-title-generator v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

passport-title-generator Build Status

Gives you a random title to use in Animal Crossing: New Horizons

Install

$ npm install passport-title-generator

Use

var passportTitleGenerator = require('passport-title-generator');

// seed it so your pairs are different than someone else using this lib
passportTitleGenerator.seed(123);
// -> true

// optionally you can provide primes to adjust how words are chosen:
passportTitleGenerator.adjPrime(3);
passportTitleGenerator.nounPrime(7);

for (var i = 0; i < 10; i++) {
  // generate and log pairs
  console.log(passportTitleGenerator());
}
// console.logs ->
// Mistakenly Caught Decorating Fiend
// Plucky Caretaker
// Small-Fry Younger Brother
// Untossable Sort
// Casual Resident
// Festive Person
// Messy Ms. Popular
// Plaza Lad
// Single-Occupant Ground Traveler
// Unpearable Fish

// after you start generating pairs, you cannot change the seed or primes
// otherwise you might end up with non-unique pairs
passportTitleGenerator.seed(456);
// -> false

CLI

Install it globally:

$ npm install -g passport-title-generator

Then you can:

$ passport-title-generator
royal-haircut

You can also specify the number of unique names to generate:

$ passport-title-generator 5
unlined octet
luckier gospel
wordy shading
slothful groomsmen
devotional newsletter

It randomly seeds between runs with Math.random().

Word list

Manual input - will update as I unlock more. Feel free to offer a PR for other titles I may have missed (or typos).

See Also

License

MIT

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago