lib/functions/dirname.js
function dirname(p){
  utils.assertString(p, 'path');
  return path.dirname(p.val).replace(/\\/g, '/');
}
function dirname(p){
  utils.assertString(p, 'path');
  return path.dirname(p.val).replace(/\\/g, '/');
}
function dirname ( p ) { utils . assertString ( p , 'path' ) ; return path . dirname ( p . val ) . replace ( / \\ / g , '/' ) ; }
Return the dirname of `path`.

@param {String} path
@return {String}
@api public
Return the dirname of path .