'use strict';

/**
 * Utils
 */

exports.noop = function (value) {
  return value;
};


exports.toString = Object.prototype.toString;


exports.typeOf = function(val) {
  return exports.toString.call(val)
    .toLowerCase()
    .replace(/\[object ([\S]+)\]/, '$1');
};



/**
 * `src` and `dest` plugins
 */

exports.src = require('./utils/src');
exports.dest = require('./utils/dest');


exports.parseFile = require('./utils/file');


exports.glob = require('globby');



exports.passthrough = require('./utils/passthrough');

/**
 * Check if `path` looks absolute.
 *
 * @param {String} path
 * @return {Boolean}
 * @api private
 */

exports.isAbsolute = require('is-absolute');


/**
 * Coerce value to an flattened, dense array.
 *
 * @api private
 */

exports.arrayify = require('arrayify-compact');



/**
 * Normalize a filepath.
 *
 * @api private
 */

exports.normalize = require('normalize-path');



/**
 * Parse a filepath into an object with properties
 * matching the methods on the node.js path module,
 * with a few extras:
 *
 *   - `dirname`
 *   - `basename` (with extension)
 *   - `name` (without extension)
 *   - `extname` (src)
 *   - `ext` (dest)
 *
 * @api private
 */

exports.parsePath = require('parse-filepath');



/**
 * Parse front matter from a string.
 *
 * @api private
 */

exports.matter = require('gray-matter');




/**
 * Parse a filepath into an object with properties
 * matching the methods on the node.js path module,
 * with a few extras:
 *
 *   - `dirname`
 *   - `basename` (with extension)
 *   - `name` (without extension)
 *   - `extname` (src)
 *   - `ext` (dest)
 *
 * @api private
 */

// exports.parseFile = function(filepath) {
//   return _.extend({}, exports.matter.read(filepath),
//     exports.parsePath(filepath));
// };

@@ -12,80 +12,41 @@
 ';%0A%0A
-/**%0A * Utils%0A */%0A%0Aexports.noop = function (value) %7B%0A  return value;%0A%7D;%0A%0A
+exports.glob = require('globby');
 %0Aexp
@@ -90,24 +90,42 @@
 ring;%0A%0A%0A
+/**%0A * Utils%0A */%0A%0A
 exports.
 typeOf =
@@ -120,14 +120,12 @@
 rts.
-typeOf
+noop
  = f
@@ -131,20 +131,23 @@
 function
+ 
 (val
+ue
 ) %7B%0A  re
@@ -155,102 +155,20 @@
 urn 
-exports.toString.call(val)%0A    .toLowerCase()%0A    .replace(/%5C%5Bobject (%5B%5CS%5D+)%5C%5D/, '$1')
+value
 ;%0A%7D;%0A%0A%0A
-%0A
 /**%0A
@@ -204,46 +204,8 @@
 */%0A%0A
-exports.src = require('./utils/src');%0A
 expo
@@ -236,26 +236,24 @@
 ils/dest');%0A
-%0A%0A
 exports.pars
@@ -289,47 +289,8 @@
 ');%0A
-%0A%0Aexports.glob = require('globby');%0A%0A%0A%0A
 expo
@@ -343,135 +343,19 @@
 ');%0A
-%0A/**%0A * Check if %60path%60 looks absolute.%0A *%0A * @param %7BString%7D path%0A * @return %7BBoolean%7D%0A * @api private%0A */%0A%0Aexports.isAbsolute
+exports.src
  = r
@@ -366,19 +366,19 @@
 re('
-is-absolute
+./utils/src
 ');%0A
@@ -507,375 +507,379 @@
 ;%0A%0A%0A
-%0A
 /**%0A * 
-Normalize a filepath.%0A *%0A * @api private%0A */%0A%0Aexports.normalize = require('normalize-path')
+## .typeOf%0A *%0A * Return a string indicating the type of the given value.%0A *%0A * @method %60typeOf%60%0A * @param %7B*%7D %60value%60%0A * @api private%0A */%0A%0Aexports.typeOf = function(value) %7B%0A  return exports.toString.call(value)%0A    .toLowerCase()%0A    .replace(/%5C%5Bobject (%5B%5CS%5D+)%5C%5D/, '$1');%0A%7D
 ;%0A%0A%0A
-%0A
 /**%0A * 
-Parse a filepath into an object with properties%0A * matching the methods on the node.js path module,%0A * with a few extras:%0A *%0A *   - %60dirname%60%0A *   - %60basename%60 (with extension)%0A *   - %60name%60 (without extension)%0A *   - %60extname%60 (src)%0A *   - %60ext%60 (dest)%0A *
+Check if %60path%60 looks absolute.%0A *%0A * @param %7BString%7D path%0A * @return %7BBoolean%7D
 %0A * 
@@ -904,25 +904,26 @@
 exports.
-parsePath
+isAbsolute
  = requi
@@ -930,29 +930,25 @@
 re('
-parse-filepath
+is-absolute
 ');%0A%0A%0A
-%0A
 /**%0A
@@ -1051,16 +1051,116 @@
 er');%0A%0A%0A
+/**%0A * Normalize a filepath.%0A *%0A * @api private%0A */%0A%0Aexports.normalize = require('normalize-path');%0A
 %0A%0A/**%0A *
@@ -1438,19 +1438,16 @@
 te%0A */%0A%0A
-// 
 exports.
@@ -1455,125 +1455,38 @@
 arse
-File = function(filepath) %7B%0A//   return _.extend(%7B%7D, exports.matter.read(filepath),%0A//     exports.parsePath(
+Path = require('parse-
 filepath
 ));%0A
@@ -1485,14 +1485,8 @@
 path
-)
+'
 );%0A
-// %7D;%0A

update utils