Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 555 Bytes

.verb.md

File metadata and controls

15 lines (10 loc) · 555 Bytes

Usage

var detect = require('{%= name %}');

API

{%= apidocs("index.js") %}

Case sensitive file systems

When using the nocase option, this library will attempt to detect the filepath with the following methods:

  1. Try to read all files in the filepath using fs.readdirSync. If successful and filepath is a directory, return the filepath.
  2. Try to read all files in the filepath's directory using fs.readdirSync. If successful, do case insensitive comparasions of the filepath to the files in filepath's directory.