dist/index.js
function(val, options){
  options = options || {};
  if ('string' == typeof val) return parse$1(val);
  return options.long
    ? long(val)
    : short(val);
}
function(val, options){
  options = options || {};
  if ('string' == typeof val) return parse$1(val);
  return options.long
    ? long(val)
    : short(val);
}
Parse or format the given `val`.

Options:

- `long` verbose formatting [false]

@param {String|Number} val
@param {Object} options
@return {String|Number}
@api public