src/cordova/plugin/plugin_spec_parser.js
function parse (raw) {
    var split = NPM_SPEC_REGEX.exec(raw);
    if (split) {
        return new PluginSpec(raw, split[1], split[2], split[3]);
    }

    return new PluginSpec(raw);
}
function parse (raw) {
    var split = NPM_SPEC_REGEX.exec(raw);
    if (split) {
        return new PluginSpec(raw, split[1], split[2], split[3]);
    }

    return new PluginSpec(raw);
}
Tries to parse the given string as an npm-style package specification of
the form (@scope/)?package(@version)? and return the various parts.

@param {String} raw  The string to be parsed
@return {PluginSpec}  The parsed plugin spec