0.1.0 • Published 10 years ago

lineno v0.1.0

Weekly downloads
165
License
MIT
Repository
github
Last release
10 years ago

lineno NPM version Build Status Build Status

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.