in createmobilespec/createmobilespec.js [456:466]
function pluginIdToDirName(id) {
if (id.indexOf('cordova-plugin-') === 0) {
return id;
}
var lastDotIndex = id.lastIndexOf('.');
if ((lastDotIndex === -1) || (lastDotIndex === id.length - 1)) {
return null;
}
return 'cordova-plugin-' + id.substr(lastDotIndex + 1);
}