Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
rbanffy committed Sep 22, 2017
2 parents 265b5ef + b248e78 commit c2dda11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ const helpSections = [
},
{
name: 'lowercase',
alias: 'l',
description: 'Output in lowercase.'
},
{
name: 'no-suffix',
alias: 'm',
description: "Don't add a suffix."
},
{
name: 'hostname',
alias: 'h',
description: 'Output a sensible hostname.'
}
]
Expand Down Expand Up @@ -66,7 +69,7 @@ const options = commandLineArgs(commandLineOptionDefinitions)
if (options.help) {
console.log(usage)
} else {
var name = nsaname.getNSAName(
let name = nsaname.getNSAName(
!(options.hostname || options['no-suffix']),
options.hostname ? '-' : '')
if (options.hostname) {
Expand Down
2 changes: 1 addition & 1 deletion lib/nsaname.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const suffixes = [
* @return {string}
*/
function getNSAName (suffix, separator) {
var nsaname = first[Math.floor(Math.random() * first.length)] +
let nsaname = first[Math.floor(Math.random() * first.length)] +
separator + second[Math.floor(Math.random() * second.length)]

if (suffix) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nsaname",
"version": "1.0.10",
"version": "1.0.11",
"description": "Like petname, but for naming secret projects and tools.",
"main": "index.js",
"author": "Ricardo Banffy <rbanffy@gmail.com>",
Expand Down

0 comments on commit c2dda11

Please sign in to comment.