lib/index.js
function format(source) {
  var fmtedCode = 'NotInitialized'
  try {
    fmtedCode = reason.printRE(reason.parseRE(source))
  } catch (e) {
    fmtedCode =
      'line ' +
      e.location.startLine +
      ', characters ' +
      e.location.startLineStartChar +
      '-' +
      e.location.endLineEndChar +
      ', ' +
      e.message +
      '\n' +
      source
  }

  return fmtedCode
}
function format(source) {
  var fmtedCode = 'NotInitialized'
  try {
    fmtedCode = reason.printRE(reason.parseRE(source))
  } catch (e) {
    fmtedCode =
      'line ' +
      e.location.startLine +
      ', characters ' +
      e.location.startLineStartChar +
      '-' +
      e.location.endLineEndChar +
      ', ' +
      e.message +
      '\n' +
      source
  }

  return fmtedCode
}
function format ( source ) { var fmtedCode = 'NotInitialized' try { fmtedCode = reason . printRE ( reason . parseRE ( source ) ) } catch ( e ) { fmtedCode = 'line ' + e . location . startLine + ', characters ' + e . location . startLineStartChar + '-' + e . location . endLineEndChar + ', ' + e . message + '\n' + source } return fmtedCode }
Runs `refmt` on a string of Reason code

@param {string} source Reason source code
@return {string} Formatted Reason code
Runs refmt on a string of Reason code