index.js
function getWatches (directory) {
  var package_path = resolve(directory || './')
  var pkg = read(package_path)
  var watches = extract(pkg)
  return Array.isArray(watches) ? watches : []
}
function getWatches (directory) {
  var package_path = resolve(directory || './')
  var pkg = read(package_path)
  var watches = extract(pkg)
  return Array.isArray(watches) ? watches : []
}
function getWatches ( directory ) { var package_path = resolve ( directory || './' ) var pkg = read ( package_path ) var watches = extract ( pkg ) return Array . isArray ( watches ) ? watches : [ ] }
Get package watches.

@param {String} directory
Package directory.

@return {Array}
Array of watches.
Get package watches .