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

Version Path
trailer_vote-fixtures-1.17.5 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.17.4 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.17.3 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.17.2 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.17.1 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.17.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.14.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.13.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.12.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.11.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.10.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.9.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.8.2 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.7.2 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.7.1 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.7.0 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.6.4 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.6.2 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.6.1 lib/trailer_vote/fixtures/main.mjs
trailer_vote-fixtures-1.6.0 lib/trailer_vote/fixtures/main.mjs