import chalk from 'chalk' ; export const pad = ( letter , length ) => { const outs = [ ] ; for ( let i = 0 ; i < length ; i ++ ) { outs . push ( letter ) ; } return outs . join ( '' ) ; } ; export const lineMark = ( line , width ) => { const strLine = line + 1 + '' ; return chalk . inverse ( pad ( ' ' , width - strLine . length ) + strLine ) + ' ' ; } ; export const lineMarkForUnderline = ( width ) => { return chalk . inverse ( pad ( ' ' , width ) ) + ' ' ; } ;