node.js中的花式名称生成器

在nodejs中是否有一个奇特的名称生成器来创建像heroku这样的名称来创建应用程序?
我在考虑像“yellow_birds”,“beautifull_summer”这样的名字.
否则,是否有任何词典可以提取酷词?

解决方法

不是节点特有的,但我发现了以下ha句发生器 here.你可以通过以下方式调整它:

function haiku(){
  var adjs = ["autumn","hidden","bitter","misty","silent","empty","dry","dark","summer","icy","delicate","quiet","white","cool","spring","winter","patient","twilight","dawn","crimson","wispy","weathered","blue","billowing","broken","cold","damp","falling","frosty","green","long","late","lingering","bold","little","morning","muddy","old","red","rough","still","small","sparkling","throbbing","shy","wandering","withered","wild","black","young","holy","solitary","fragrant","aged","sNowy","proud","floral","restless","divine","polished","ancient","purple","lively","nameless"],nouns = ["waterfall","river","breeze","moon","rain","wind","sea","sNow","lake","sunset","pine","shadow","leaf","glitter","forest","hill","cloud","meadow","sun","glade","bird","brook","butterfly","bush","dew","dust","field","fire","flower","firefly","feather","grass","haze","mountain","night","pond","darkness","sNowflake","silence","sound","sky","shape","surf","thunder","violet","water","wildflower","wave","resonance","wood","dream","cherry","tree","fog","frost","voice","paper","frog","smoke","star"];

  return adjs[Math.floor(Math.random()*(adjs.length-1))]+"_"+nouns[Math.floor(Math.random()*(nouns.length-1))];
}

相关文章

这篇文章主要介绍“基于nodejs的ssh2怎么实现自动化部署”的...
本文小编为大家详细介绍“nodejs怎么实现目录不存在自动创建...
这篇“如何把nodejs数据传到前端”文章的知识点大部分人都不...
本文小编为大家详细介绍“nodejs如何实现定时删除文件”,内...
这篇文章主要讲解了“nodejs安装模块卡住不动怎么解决”,文...
今天小编给大家分享一下如何检测nodejs有没有安装成功的相关...