code-line-number

1.0.4 • Public • Published

code-line-number

Determines the current line number in JavaScript

Installing

Using npm:

$ npm install code-line-number

Example

const ln = require('code-line-number');
// or
import ln from 'code-line-number';

ln(2); // => 20
// ln(2: Is a depth level, can be 3 or other );
ln(2, 'report'); // => 20, more data in console/terminal
// You can use 'report' for watching call stack and choose depth level you need

/code-line-number/

    Package Sidebar

    Install

    npm i code-line-number

    Weekly Downloads

    0

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    2.92 kB

    Total Files

    5

    Last publish

    Collaborators

    • vitaliy-dyachuk