Skip to content

Instantly share code, notes, and snippets.

@gbellmann
Created September 11, 2016 18:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbellmann/3a9caf7f9602e7f19693abf312eec932 to your computer and use it in GitHub Desktop.
Save gbellmann/3a9caf7f9602e7f19693abf312eec932 to your computer and use it in GitHub Desktop.
Sample Node.js Azure Function using a require to import a library
// Importamos la librería underscore.js
var _ = require('underscore');
module.exports = function(context) {
// Usamos la librería underscore.js que importamos
var matched_names = _
.where(context.bindings.myInput.names, {first: 'Juan'});
// El resto del código de nuestra función
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment