Simple node application for determining active binary flag from a decimal number