function transform( files ) {
	var match;
	var name;
	var out;
	var i;

	out = [];
	for ( i = 0; i < files.length; i++ ) {
		match = lastIndexOf( files[ i ], '@stdlib' );
		if ( match >= 0 ) {
			name = files[ i ].substring( match );
			name = dirname( name );
			out.push( convertPath( name, 'posix' ) );
		}
	}
	return out;
}
Transforms a raw `package.json` list into package names.

@private
@param {StringArray} files - list of `package.json` absolute file paths
@returns {StringArray} list of package names

@example
var files = [ '/stdlib/stdlib/lib/node_modules/@stdlib/constants/float64/min-safe-integer/package.json' ];

var names = transform( files );
// returns [ '@stdlib/constants/float64/min-safe-integer' ]