lineno
Get the current line number.
Insall
Install with npm
npm install lineno
Usage
const Lineno = ; const lineno = __filename; console; // print the current line number console; // print the file path
APIs
lineno.get() => number
returns the current line number.
Lineno.filename => string
is the file path specified as a constructor argument.
License
Copyright (C) 2016 Takayuki Sato
This program is free software under MIT License. See the file LICENSE in this distribution for more details.