MCPcopy Index your code
hub / github.com/postcss/postcss / urlOf

Function urlOf

test/input.test.ts:9–11  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

7import { Input } from '../lib/postcss.js'
8
9function urlOf(file: string): string {
10 return pathToFileURL(join(__dirname, file)).toString()
11}
12
13test('fromLineAndColumn() returns offset', () => {
14 let input = new Input('a {\n}')

Callers 1

input.test.tsFile · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…