Every line of 'node js export multiple functions' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
10 function __es6_export__(name, value) { 11 __exports__[name] = value; 12 }
7 function __es6_export__(name, value) { 8 __exports__[name] = value; 9 }
888 function DeclareModuleExports() { 889 for (var _len84 = arguments.length, args = new Array(_len84), _key84 = 0; _key84 < _len84; _key84++) { 890 args[_key84] = arguments[_key84]; 891 } 892 893 return _builder.default.apply(void 0, ["DeclareModuleExports"].concat(args)); 894 }
67 function ModuleExport(_x2) { 68 return _ModuleExport.apply(this, arguments); 69 }
178 function _export(key, value) { 179 self['__js_' + key] = value; 180 }
110 function importExport(_import) { 111 _L('Run importExport'); 112 return false; 113 }
117 export function createExports(exportsKey: string, exportsVariableName: string, property: ASTNode): ASTNode { 118 return { 119 type: 'ExpressionStatement', 120 expression: { 121 type: 'AssignmentExpression', 122 operator: '=', 123 left: { 124 type: 'MemberExpression', 125 object: { 126 type: 'Identifier', 127 name: exportsKey, 128 }, 129 computed: false, 130 property: { 131 type: 'Identifier', 132 name: exportsVariableName, 133 }, 134 }, 135 right: property, 136 }, 137 }; 138 }
86 function exportObject (name, value) { 87 const serialized = jsesc(value, { 88 json: true, 89 compact: false, 90 indent: ' ', 91 minimal: true 92 }) 93 return `exports['${name}'] = ${serialized}\n` 94 }
27 function addExport ( module, name, as ) { 28 if ( !bundleExports[ module.id ] ) { 29 bundleExports[ module.id ] = {}; 30 } 31 32 bundleExports[ module.id ][ name ] = as; 33 }
173 AMDFormatter.prototype.exportSpecifier = function exportSpecifier(specifier, node, nodes) { 174 if (this.doDefaultExportInterop(specifier)) { 175 this.passModuleArg = true; 176 177 if (specifier.exported !== specifier.local && !node.source) { 178 nodes.push(util.template("exports-default-assign", { 179 VALUE: specifier.local 180 }, true)); 181 return; 182 } 183 } 184 185 _common2["default"].prototype.exportSpecifier.apply(this, arguments); 186 };