New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

project-name-generator

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

project-name-generator

Generate a random, unique, heroku-like name for your app/project/server etc. e.g. "resonant-silence"

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.1K
decreased by-4.14%
Maintainers
1
Weekly downloads
 
Created
Source

Project Name Generator

Generate quirky names like "spiffy-waterfall", "sassy-bread", "mature-dew-8239" to use wherever you need a random but memorable name.

###Install npm install project-name-generator --save

###Quick Start

var generate = require('project-name-generator').generate;

generate().dashed; // 'sassy-bread'

generate().spaced; // 'unwavering coal'

generate().raw; // ['undisturbed', 'iceberg']

generate(true).dashed; // 'pithy-willow-7794'

generate(true).raw; // ['gentle', 'guru', 621]

###API The module returns an object with a single method generate(addNumberSuffix)

Calling generate() with no arguments will return an object:

{
    spaced: 'whispering valley', 
    dashed: 'whispering-valley', 
    raw: ['whispering', 'valley']
}

Passing true (or a truthy value) to generate() will include a number from 1-9999 (both inclusive) at the end.

So generate(true) will return:

{
    spaced: 'limitless pond 6452', 
    dashed: 'limitless-pond-6452', 
    raw: ['limitless', 'pond', 6452]
}

###Tests To run tests locally:

npm install

npm test

Keywords

FAQs

Package last updated on 17 Nov 2014

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc