Skip to content

Instantly share code, notes, and snippets.

@militoj
militoj / keybase.md
Created February 1, 2016 18:09
Keybase

Keybase proof

I hereby claim:

  • I am militoj on github.
  • I am johnmilito (https://keybase.io/johnmilito) on keybase.
  • I have a public key whose fingerprint is 3036 A57F E9D8 B0FE 2107 C9E7 E0E3 B1FF D6F7 DF03

To claim this, I am signing this object:

var fs = require('fs')
var fileLister = require('./module.js')
fileLister()
This problem is the same as the previous but introduces the concept of
modules. You will need to create two files to solve this.
Create a program that prints a list of files in a given directory,
filtered by the extension of the files. The first argument is the
directory name and the second argument is the extension filter. Print the
list of files (one file per line) to the console. You must use
asynchronous I/O.
You must write a module file to do most of the work. The module must