A fantasy name and description generator.
npm install fantasy-names [-g]
fantasy-names diablo demons 10 0
echo -e "var names = require('fantasy-names');\nconsole.log(names('diablo', 'demons', 10, 0));" > names.js
node names.js
Typically type 0=female, and 1=male. You can supply a string seed as the fith argument.
Create lists from wikipedia character pages with var char=[];$('p a').each((i,a)=>{var title =$(a).attr('title'); if(title.toLowerCase().indexOf('list')<0){char.push(title.indexOf('(') >= 0 ? title.substring(0,title.indexOf('(')) : title)}});JSON.stringify(char)
var char=[];$('dt span').each((i,a)=>{var title =$(a).attr('title') || $(a).attr('id'); if(title && title.toLowerCase().indexOf('list')<0){char.push(title.indexOf('(') >= 0 ? title.substring(0,title.indexOf('(')) : title)}});JSON.stringify(char)
var char=[];$('table.wikitable tbody>tr>td:first-child').each((i,a)=>{var title =$(a).text(); if(title.toLowerCase().indexOf('list')<0){char.push(title.indexOf('(') >= 0 ? title.substring(0,title.indexOf('(')) : title)}});JSON.stringify(char)