1.2.0 • Published 2 years ago

javascript-petname v1.2.0

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

javascript-petname

Petname implementation in JavaScript, inspired by Dustin Kirkland's Petname. The data is from petname.

latest git version latest npm version license

Installation

Requirements

  • node >= v12
  • npm >= v5

javascript-petname can either be installed globally or used with npx.

npm install -g javascript-petname
npx javascript-petname

Usage

npx javascript-petname <args>

The following arguments are available

argumentdescription
--words, -wnumber of words, defaults to 2.
--separator, -sseparator, defaults to -

All arguments is available in the exported generatePetname() function.

Example

npx javascript-petname
npx javascript-petname -w 4 -s =
const { generatePetname } = require('javascript-petname');

generatePetname();
const { generatePetname } = require('javascript-petname');

generatePetname({
  words: 4,
  separator: '=',
});

Contributing

If you want to contribute and make our project better, your help is very welcome.

License

MIT © anthonkendel

1.2.0

2 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago