mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 23:52:06 +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)
|
|
}
|