(lineNumber, maxLineNumber)
| 6 | import {chalk} from './chalk.js'; |
| 7 | |
| 8 | const formatLineNumber = (lineNumber, maxLineNumber) => |
| 9 | ' '.repeat(Math.max(0, String(maxLineNumber).length - String(lineNumber).length)) + lineNumber; |
| 10 | |
| 11 | export default function excerptCode(source, options = {}) { |
| 12 | if (!source.isWithinProject || source.isDependency) { |