pretty-name

capitalizes human names properly

Usage no npm install needed!

<script type="module">
  import prettyName from 'https://cdn.skypack.dev/pretty-name';
</script>

README

pretty-name Build Status

provides an easy way to do mostly correct capilization to international names, much better than just captializing the first letter of every word.

install

npm install pretty-name

or

bower install pretty-name

examples

var prettyName = require('pretty-name');

prettyName('andy warhol') // => Andy Warhol
prettyName('issam el-said') // => Issam El-Said
prettyName('byun jong-ha') // => Byun Jong-Ha
prettyName('armand le veel') // => Armand Le Veel
prettyName('dora de larios') // => Dora de Larios
prettyName('fernand allard-l'olivier') // => Fernand Allard-L\'Olivier
prettyName('pietro di francesco degli orioli') // => Pietro di Francesco degli Orioli