4.0.0 • Published 8 years ago
@adrianhelvik/trace v4.0.0
@adrianhelvik/trace
Installing
npm install --save @adrianhelvik/trace
yarn add @adrianhelvik/traceExample usage
import trace from '@adrianhelvik/trace'
const source =
`hello there
how do you do?
I'm fine`
const index = 16
const message = 'Hello world'
console.log(trace(source, index, message))This prints:
2 | how do you do?
^ [2:5] Hello worldLicence: MIT
See LICENCE.md