 Module = require 'module'
 async = require 'async'
 rimraf = require 'rimraf'
+Path = require 'path'
 
 module.exports =
   # Make the given path absolute by resolving it against the


  isReadmePath: (path) ->
    extension = @extension(path)
    base = @base(path, extension).toLowerCase()
    base is 'readme' and (extension is '' or @isMarkdownExtension(extension))

  readPlist: (path) ->

  # extension exists.
  extension: (path) ->
    return '' unless typeof path is 'string'
    match = Path.basename(path).match(/\.[^\.]+$/)
    if match
      match[0]
    else
