"Platform add android" and "platform list" commands

Is there a better way to parse the file? Like some npm package that understands its format?