Skip to content

Instantly share code, notes, and snippets.

@eofs
Created May 6, 2015 15:29
Show Gist options
  • Save eofs/364d87ab3c54f0ce06c0 to your computer and use it in GitHub Desktop.
Save eofs/364d87ab3c54f0ce06c0 to your computer and use it in GitHub Desktop.
JS Module Example
var map = require('mappings.js');
// Source object
var source = {};
var results = map.song(source)
function mapArtist(source) {
return {}
}
function mapSong(source) {
return {}
}
module.exports = {
artist: mapArtist,
song: mapSong
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment