milesnash / suggest-username

The Teeny Username Generator
MIT License
3 stars 0 forks source link

Move to an ES6 class? #1

Open alexwilson opened 8 years ago

alexwilson commented 8 years ago

Hey, does it make sense to export this via ES6?

milesnash commented 8 years ago

So exposing as...

const suggestUsername = require('suggest-username');
const username = new suggestUsername(optionalParams);

? I'm currently being swayed away from using classical inheritance techniques in js. Any reason why you would prefer it over a Promise?