Sha256: 88f9f9e86114826f09584011d48e8c22e79720f03323e635f8a82e2da67544b3
Contents?: true
Size: 334 Bytes
Versions: 27
Compression:
Stored size: 334 Bytes
Contents
import path from 'path' import url from 'url' const pathname = decodeURI(new url.URL(import.meta.url).pathname) const normalized_path = path.normalize(pathname).replace(/^\\([A-Z]):\\/, '$1:\\') const dirname = path.dirname(normalized_path) export default function(mediaType) { return path.join(dirname, ...mediaType.split('/')) }
Version data entries
27 entries across 27 versions & 1 rubygems