Skip to content

Instantly share code, notes, and snippets.

@elliptic-shiho
Created August 1, 2015 09:33
Show Gist options
  • Save elliptic-shiho/5c9189beeb7e998c9b29 to your computer and use it in GitHub Desktop.
Save elliptic-shiho/5c9189beeb7e998c9b29 to your computer and use it in GitHub Desktop.
require('fs').readdir(process.argv[2],function(e,d){console.log(d.filter(function(x){return x.match(/^[^\.].+\.md$/)}).join("\n"))});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment