Sha256: 7e7030385c2cf0d543edd58322f627ccd95dca8efa491dfc23a783ba10ce3436
Contents?: true
Size: 936 Bytes
Versions: 5
Compression:
Stored size: 936 Bytes
Contents
const RuntimeName = require('./RuntimeName') class RuntimeNameHandler { /** * @param {number} runtimeName * @returns {string} */ static getName(runtimeName) { switch (runtimeName) { case RuntimeName.Clr: return 'clr' case RuntimeName.Go: return 'go' case RuntimeName.Jvm: return 'jvm' case RuntimeName.Netcore: return 'netcore' case RuntimeName.Perl: return 'perl' case RuntimeName.Python: return 'python' case RuntimeName.Ruby: return 'ruby' case RuntimeName.Nodejs: return 'nodejs' case RuntimeName.Cpp: return 'cpp' default: throw new Error('Invalid runtime name.') } } } module.exports = RuntimeNameHandler
Version data entries
5 entries across 5 versions & 1 rubygems