Nuptial Predicament Mediation

    lineno

    0.1.0 • Public • Published

    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.

    Keywords

    Install

    npm i lineno

    DownloadsWeekly Downloads

    95

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar