function name2standalone( name ) {
	var out;
	var n;
	var i;
	if ( isString( name ) ) {
		if ( startsWith( name, SCOPE ) ) {
			return SCOPE + replace( name.substring( 8 ), RE, '-' );
		}
		return name;
	}
	if ( !isArrayLikeObject( name ) ) {
		throw new TypeError( format( 'invalid argument. Must provide either a string or an array of strings. Value: `%s`.', name ) );
	}
	out = [];
	for ( i = 0; i < name.length; i++ ) {
		n = name[ i ];
		if ( !isString( n ) ) {
			throw new TypeError( format( 'invalid argument. Must provide either a string or an array of strings. Value: `%s`. Index: `%u`.', n, i ) );
		}
		if ( startsWith( n, SCOPE ) ) {
			out.push( SCOPE + replace( n.substring( 8 ), RE, '-' ) );
		} else {
			out.push( n );
		}
	}
	return out;
}
Converts a stdlib package name (or list of package names) to a standalone package name.

## Notes

-   Non-stdlib package names are returned unchanged.

@param {(string|StringArray)} name - package name(s)
@throws {TypeError} must provide a string or an array of strings
@returns {(string|StringArray)} standalone package name(s)

@example
var name = name2standalone( '@stdlib/math/base/special/sin' );
// returns '@stdlib/math-base-special-sin'

@example
var pkgs = [
    '@stdlib/math/base/special/sin'
];

var out = name2standalone( pkgs );
// returns [ '@stdlib/math-base-special-sin' ]