var detect = require('{%= name %}');
{%= apidocs("index.js") %}
When using the nocase
option, this library will attempt to detect the filepath with the following methods:
- Try to read all files in the
filepath
usingfs.readdirSync
. If successful andfilepath
is a directory, return thefilepath
. - Try to read all files in the
filepath
's directory usingfs.readdirSync
. If successful, do case insensitive comparasions of thefilepath
to the files infilepath
's directory.