Created
May 6, 2015 15:29
-
-
Save eofs/364d87ab3c54f0ce06c0 to your computer and use it in GitHub Desktop.
JS Module Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var map = require('mappings.js'); | |
// Source object | |
var source = {}; | |
var results = map.song(source) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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