respecVersion - speced/respec GitHub Wiki
window.respecVersion
When ReSpec loads, it sets window.respecVersion to a semver string identifying the current version (e.g., "35.8.0").
Usage
console.log(window.respecVersion); // "35.8.0"
Notes
- Also accessible via
document.respec.version - In development builds: returns
"Developer Edition"instead of a version number - Useful for debugging or for scripts that need to adapt to specific ReSpec versions