src/rainbow.js
function _getWorkerData(code, lang) {
    let options = {};
    if (typeof lang === 'object') {
        options = lang;
        lang = options.language;
    }

    lang = aliases[lang] || lang;

    const workerData = {
        id: id++,
        code,
        lang,
        options: _getPrismOptions(options),
        isNode
    };

    return workerData;
}
function _getWorkerData(code, lang) {
    let options = {};
    if (typeof lang === 'object') {
        options = lang;
        lang = options.language;
    }

    lang = aliases[lang] || lang;

    const workerData = {
        id: id++,
        code,
        lang,
        options: _getPrismOptions(options),
        isNode
    };

    return workerData;
}
function _getWorkerData ( code , lang ) { let options = { } ; if ( typeof lang === 'object' ) { options = lang ; lang = options . language ; } lang = aliases [ lang ] || lang ; const workerData = { id : id ++ , code , lang , options : _getPrismOptions ( options ) , isNode } ; return workerData ; }
Gets data to send to webworker

@param  {string} code
@param  {string} lang
@return {object}
Gets data to send to webworker