How to use the coffee-script/package.json.version function in coffee-script

To help you get started, we’ve selected a few coffee-script examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electron-userland / electron-compilers / src / js / coffeescript.js View on Github external
getCompilerVersion() {
    return require('coffee-script/package.json').version;
  }
}
github TypeStrong / atom-typescript / node_modules / basarat-text-buffer / node_modules / grim / node_modules / coffeestack / index.js View on Github external
getCachePath = function(code) {
    var digest;
    if (!cachePath) {
      return;
    }
    digest = crypto.createHash('sha1').update(code, 'utf8').digest('hex');
    if (CoffeeScriptVersion == null) {
      CoffeeScriptVersion = require('coffee-script/package.json').version;
    }
    return path.join(cachePath, CoffeeScriptVersion, "" + digest + ".json");
  };
github electron-userland / electron-compilers / src / js / coffeescript.js View on Github external
initializeCompiler() {
    coffee = require('coffee-script');
    return require('coffee-script/package.json').version;
  }
github TypeStrong / atom-typescript / node_modules / atom-message-panel / node_modules / space-pen / node_modules / grim / node_modules / coffeestack / index.js View on Github external
getCachePath = function(code) {
    var digest;
    if (!cachePath) {
      return;
    }
    digest = crypto.createHash('sha1').update(code, 'utf8').digest('hex');
    if (CoffeeScriptVersion == null) {
      CoffeeScriptVersion = require('coffee-script/package.json').version;
    }
    return path.join(cachePath, CoffeeScriptVersion, "" + digest + ".json");
  };