Given a string, find the character offset for the beginning of each line
npm install line-offsets@1.0.0
yarn add line-offsets@1.0.0
pnpm add line-offsets@1.0.0
bun add line-offsets@1.0.0
^3.5.0