![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
project-name-generator
Advanced tools
Generate a random, unique, heroku-like name for your app/project/server etc. e.g. "resonant-silence"
Generate quirky names like spiffy-waterfall, sassy-bread, mature-dew-8239 to use wherever you need a random but memorable name.
Useful for object names, temp folders, passwords, project names, unique ids etc
npm install project-name-generator --save
var generate = require('project-name-generator');
generate().dashed; // 'uptight-guitar'
generate().spaced; // 'grandiose clam'
generate().raw; // ['deluxe', 'grandmother']
generate({ number: true }).dashed; // 'disgraceful-temper-7794'
generate({ words: 4 }).raw; // ['tiny', 'crabby', 'wired', 'quicksand']
generate({ words: 4, number: true }).dashed; // 'breakable-judicious-luxuriant-tax-3931'
generate({ words: 2, alliterative: true }).spaced; // 'elegant experience'
This package contains a cli script. You can pull in the package globally using npm
npm install -g project-name-generator
Call from your command line
$ project-name-generator
{ raw: [ 'spry', 'bath' ],
dashed: 'spry-bath',
spaced: 'spry bath' }
For CLI options
project-name-generator -h
Usage: project-name-generator [options]
Options:
-V, --version output the version number
-w, --words [num] number of words [2]
-n, --numbers use numbers
-a, --alliterative use alliterative
-o, --output [output] output type [raw|dashed|spaced]
-h, --help output usage information
The module returns single method generate(options)
Calling generate()
with no arguments will return an object:
{
raw: ['whispering', 'valley'],
dashed: 'whispering-valley',
spaced: 'whispering valley'
}
The options
argument object can have properties
generate({ words: 3 })
will return:
{
raw: ['harmonious', 'endurable', 'substance'],
dashed: 'harmonious-endurable-substance',
spaced: 'harmonious endurable substance'
}
generate({ words: 5, number: true })
will return:
{
raw: [ 'exciting', 'cooperative', 'legal', 'lackadaisical', 'blood', 4099 ],
dashed: 'exciting-cooperative-legal-lackadaisical-blood-4099',
spaced: 'exciting cooperative legal lackadaisical blood 4099'
}
generate({ words: 2, number: false, alliterative: true })
will return:
{
raw: [ 'elegant', 'experience' ],
dashed: 'elegant-experience',
spaced: 'elegant experience'
}
To run tests locally:
npm install
npm test
The library has been tested with Node.js 8.6.0
FAQs
Generate a random, unique, heroku-like name for your app/project/server etc. e.g. "resonant-silence"
The npm package project-name-generator receives a total of 0 weekly downloads. As such, project-name-generator popularity was classified as not popular.
We found that project-name-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.