function escapeName (name) {
	const isScoped = name.charAt(0) === '@'
	const escapedName = isScoped
		? `@${encodeURIComponent(name.substr(1))}`
		: encodeURIComponent(name)
	return escapedName
}
escape the given package name, which can then be used as part of the package
root URL.
@param  {String} name - package name.
@return {String} - escaped package name.