UNPKG

@tokens-studio/sdk

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