Automatically create methods for each directory listed in package.json