@adrianhelvik/trace

4.0.0 • Public • Published

@adrianhelvik/trace

Installing

npm install --save @adrianhelvik/trace
yarn add @adrianhelvik/trace

Example 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 world

Licence: MIT

See LICENCE.md

Readme

Keywords

none

Package Sidebar

Install

npm i @adrianhelvik/trace

Weekly Downloads

1

Version

4.0.0

License

MIT

Unpacked Size

113 kB

Total Files

6

Last publish

Collaborators

  • adrianhelvik