lineOf

tcmts.cli.views.lineOf · #jbqviz5j · term · runs anywhere

export const lineOf = (text: string, offset: number) => text.slice(0, offset).split("\n").length - 1

used by