packages/remark-bemjson/lib/exports.js
function createExport(exportOptions, content) {
    if (!content) return content;

    const type = exportOptions.type;
    const name = exportOptions.name;
    const exportFunction = exportFabric(type);

    return exportFunction(name, content);
}
function createExport(exportOptions, content) {
    if (!content) return content;

    const type = exportOptions.type;
    const name = exportOptions.name;
    const exportFunction = exportFabric(type);

    return exportFunction(name, content);
}
function createExport ( exportOptions , content ) { if ( ! content ) return content ; const type = exportOptions . type ; const name = exportOptions . name ; const exportFunction = exportFabric ( type ) ; return exportFunction ( name , content ) ; }
Create export for one of provided modules

@param {Object} exportOptions - export type and name
@param {ExportType} exportOptions.type - export type
@param {String} [exportOptions.name] - export name, required for browser modules
@param {String} content - bemjson content
@returns {String}
Create export for one of provided modules