UNPKG

@tokens-studio/sdk

Version:
8 lines 327 B
import fs from 'node:fs'; import { fileURLToPath } from 'node:url'; export function getVersion() { const pkgJsonURL = new URL('../../../package.json', import.meta.url); const version = JSON.parse(fs.readFileSync(fileURLToPath(pkgJsonURL), 'utf-8')).version; return version; } //# sourceMappingURL=get-version.js.map