Sha256: b8718d2fcf79b6caca13650a982aaaf1fab25405c3fd8083912006b028ddc8e9

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 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

3 entries across 3 versions & 1 rubygems

Version Path
trailer_vote-fixtures-1.16.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.15.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.2.0 lib/trailer_vote/fixtures/main.mjs