MCPcopy
hub / github.com/tailwindlabs/tailwindcss / getVersion

Function getVersion

packages/@tailwindcss-cli/src/utils/renderer.ts:96–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96function getVersion(): string {
97 if (typeof globalThis.__tw_version === 'string') {
98 return globalThis.__tw_version
99 }
100 let { version } = JSON.parse(fs.readFileSync(resolve('tailwindcss/package.json'), 'utf-8'))
101 return version
102}

Callers 1

headerFunction · 0.70

Calls 1

resolveFunction · 0.90

Tested by

no test coverage detected