Skip to content

Instantly share code, notes, and snippets.

@cesarandreu
Created January 16, 2017 03:20
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 cesarandreu/0a9e8bd027c2c5650a348020162f656a to your computer and use it in GitHub Desktop.
Save cesarandreu/0a9e8bd027c2c5650a348020162f656a to your computer and use it in GitHub Desktop.
const fs = require('fs')
const path = require('path')
module.exports = {
get data () {
return fs.readdirSync(...).map(...).filter(...).map(...)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment