Okay, sorry about that last attempt at a pull request; this one is good.
Changes include converting code to use a class instead of a function which allows for a custom list of abbreviations (e.g. "GB", "MB", "grand", etc).
Converted code to class-style instead of functional. Now accepts cust…
…om list of abbreviations. Added new tests.
Thanks again for this. I think our editors must be vastly different in configuration. Running npm test in the repo will ensure that the travis build passes and the coding style is adhered to.
This could have also been done without using prototypal inheritance but im happy with either.
I also added the ability to be able to instantiate without the new keyword. See:
This has been published as version 0.0.3