mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +00:00
8 lines
237 B
TypeScript
8 lines
237 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
|
|
export const fixtureDir = fileURLToPath(new URL('fixture', import.meta.url))
|
|
|
|
export function normalizeLineEndings (str: string, normalized = '\n') {
|
|
return str.replace(/\r?\n/g, normalized)
|
|
}
|