codewithmichael / babel-browser-harness

In-browser CDN-based ES6+ transpiling via Babel
MIT License
1 stars 0 forks source link

Add "version" property #15

Closed codewithmichael closed 8 years ago

codewithmichael commented 8 years ago

Purpose

It's useful to be able to get a library version from the console.

Proposal

Add a public-facing "version" property to BBH's global bbh variable.

_Example_

console.log(bbh.version)
// Output: 0.1.1
codewithmichael commented 8 years ago

PR #19 resolves this issue. Marking as ready and setting for next milestone.

codewithmichael commented 8 years ago

Note, that while there will be a version property, BBH currently removes bbh from the global scope after configuration. So bbh.version will only be available during configuration.