lineno
v0.1.0
Published
Get the current line number
Downloads
136
Readme
lineno
Get the current line number.
Insall
Install with npm
npm install lineno
Usage
const Lineno = require('lineno');
const lineno = new Lineno(__filename);
console.log(lineno.get()); // print the current line number
console.log(lineno.filename); // 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.