Skip to content

Commit

Permalink
Minor tweaks to camelcase feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
aseemk committed Mar 24, 2015
1 parent 4feb44b commit a81a5ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Default is false.

`camelcase`: Automatically add camelcase aliases for files with dash- and
underscore-separated names. E.g. `foo-bar.js` will be exposed under both the
original `'foo-bar'` name as well as a `'fooBarBaz'` alias. Default is false.
original `'foo-bar'` name as well as a `'fooBar'` alias. Default is false.

`duplicates`: By default, if multiple files share the same basename, only the
highest priority one is `require()`'d and returned. (Priority is determined by
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ module.exports = function requireDir(dir, opts) {
// default arguments:
dir = dir || '.';
opts = opts || {};
var camelcase = !!opts.camelcase;

// resolve the path to an absolute one:
dir = Path.resolve(parentDir, dir);
Expand Down

0 comments on commit a81a5ed

Please sign in to comment.