brunch/brunch — comment on commit f903e7b723afd7f9900eb57f93d07bc612ec1818
File:  line 0
By nelsonsilva:

How about using toString ? toString().match(/^function\s(.+)\(/)[1] should return the constructor name....
This was the disadvantage that plugins must be direct descendants...
How about at least trying to test with a single property like pluginType instead of testing for each type?
Or a brunchVersion prop with a syntax similar to package.json's