npm-convert.js
function convertPropertyNames (context, pkg, map , root, waiting) {
	if(!map) {
		return map;
	}
	var clone = {}, value;
	for(var property in map ) {
		value = convertName(context, pkg, map, root, property, waiting);
		if(typeof value === 'string') {
			clone[value] = map[property];
		}

		// do root paths b/c we don't know if they are going to be included with the package name or not.
		if(root) {
			value = convertName(context, pkg, map, false, property, waiting);
			if(typeof value === 'string') {
				clone[value] = map[property];
			}
		}
	}
	return clone;
}
function convertPropertyNames (context, pkg, map , root, waiting) {
	if(!map) {
		return map;
	}
	var clone = {}, value;
	for(var property in map ) {
		value = convertName(context, pkg, map, root, property, waiting);
		if(typeof value === 'string') {
			clone[value] = map[property];
		}

		// do root paths b/c we don't know if they are going to be included with the package name or not.
		if(root) {
			value = convertName(context, pkg, map, false, property, waiting);
			if(typeof value === 'string') {
				clone[value] = map[property];
			}
		}
	}
	return clone;
}
function convertPropertyNames ( context , pkg , map , root , waiting ) { if ( ! map ) { return map ; } var clone = { } , value ; for ( var property in map ) { value = convertName ( context , pkg , map , root , property , waiting ) ; if ( typeof value === 'string' ) { clone [ value ] = map [ property ] ; } // do root paths b/c we don't know if they are going to be included with the package name or not. if ( root ) { value = convertName ( context , pkg , map , false , property , waiting ) ; if ( typeof value === 'string' ) { clone [ value ] = map [ property ] ; } } } return clone ; }
converts only the property name
converts only the property name