Skip to content
Browse files

Adds docs to new feature

  • Loading branch information...
1 parent c8bc1cf commit 0660a5f23b0178c658a3706a15f3d879435132f1 @dscape dscape committed Aug 14, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 Readme.md
View
8 Readme.md
@@ -15,3 +15,11 @@ var controllers = require('require-all')({
// for example:
// { HomeController: function HomeController() {...}, ...}
```
+
+## Advanced usage
+
+If your objective is to simply require all .js and .json files in a directory you can just pass a string to require-all:
+
+``` js
+var libs = require('require-all')(__dirname + '/lib');
+```

0 comments on commit 0660a5f

Please sign in to comment.
Something went wrong with that request. Please try again.