jordanbrauer / unit-converter

Convert standard units from one to another with this easy to use, lightweight package
https://jordanbrauer.github.io/unit-converter/
MIT License
129 stars 39 forks source link

Electricity/Energy Values Inquiry #156

Open brysonreece opened 4 years ago

brysonreece commented 4 years ago

Hey there, awesome package!

I was wanting to inquire; are there any future plans for implementing "Electricity" values or perhaps expanding the Energy namespace to include units and conversions for things like Voltage/Amperage/Wattage?

Thanks so much!

/label ~"Type: Enhancement"

jordanbrauer commented 4 years ago

Greetings, @brysonreece ! And, thank you!

are there any future plans for implementing "Electricity" values or perhaps expanding the Energy namespace to include units and conversions for things like Voltage/Amperage/Wattage?

Indeed, there is! Number #84 mentions adding the ampere (amp) as a new base SI unit (along with some others that the package still lacks). I've unfortunately been very busy with my own day job, so I've had to put my own work on the package down for now (though it looks I will have some time within the next month for Hacktoberfest!). So, if you'd like to start a PR, I would be more than happy to review it and pull it in to the project!

The goal of the package is to complete the seven base SI units – currently four are present (time, length, mass, and temperature), and the other three are mentioned in #84 . Should you choose to submit a PR, we can mark that one off the list and close this issue!


I'm thinking one of the following namespaces will fit well;

namespace UnitConverter\Unit\Electricity;
namespace UnitConverter\Unit\Current;
namespace UnitConverter\Unit\ElectricalCurrent;