Socket
Socket
Sign inDemoInstall

node-petname

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-petname

A utility to generate "pet names", consisting of a random combination of adverbs, an adjective, and an animal name.


Version published
Weekly downloads
246
decreased by-8.55%
Maintainers
1
Install size
21.9 kB
Created
Weekly downloads
 

Readme

Source

Node Petname

JavaScript Style Guide

A utility to generate "pet names", consisting of a random combination of adverbs, an adjective, and an animal name.

Ported from: https://github.com/lcherone/php-petname

Install

Require this package with npm using the following command:

$ npm install node-petname --save

Usage

var petname = require('node-petname')

console.log('no params', petname())  // serval
console.log('1', petname(1))         // mayfly
console.log('2', petname(2))         // supreme gibbon
console.log('NaN', petname('foo'))   // foo
console.log('1, -', petname(1, '-')) // mammoth
console.log('2, -', petname(2, '-')) // robust-cicada
console.log('3, -', petname(3, '-')) // verbally-romantic-maggot
console.log('4, -', petname(4, '-')) // simply-early-enabling-dodo
console.log('5, -', petname(5, '-')) // daily-shortly-factually-close-aphid

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Keywords

FAQs

Last updated on 21 Feb 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc