Tone.js/gulp/version.js
2017-08-30 12:45:31 -04:00

7 lines
189 B
JavaScript
Executable file

const fs = require('fs')
var VERSION = fs.readFileSync(`${process.argv[2]}/Tone/core/Tone.js`, 'utf-8')
.match(/(?:Tone\.version\s*=\s*)(?:'|")(.*)(?:'|");/m)[1];
console.log(VERSION)