Created
July 18, 2014 22:12
-
-
Save aarondai/9423423375a4328c0924 to your computer and use it in GitHub Desktop.
NodeJS:List Files Under Current Dir in JSON
This file contains hidden or 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
node -e "var fs= require('fs'); console.log(JSON.stringify(fs.readdirSync('.'),null,4));" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment