format-position.js 239 B

1234567891011
  1. function formatPosition(metadata) {
  2. var line = metadata[0];
  3. var column = metadata[1];
  4. var source = metadata[2];
  5. return source
  6. ? source + ':' + line + ':' + column
  7. : line + ':' + column;
  8. }
  9. module.exports = formatPosition;