get-line-number

1.0.2 • Public • Published

get-line-number

get-line-number is a simple npm package that helps you find the line number of a specific code snippet in your JavaScript project.

Installation

You can install the package via npm:

npm install get-line-number

Usage

Simply import the "get-line-number" from the package and call it to get the line number where the function was called:

const getLineNumber = require("get-line-number");
const lineNumber = getLineNumber();
console.log(lineNumber); // line number !

This will log the line number of the console.log(lineNumber); statement

Contributing

Contributions are welcome! If you find a bug or want to suggest a feature, please open an issue or submit a pull request.

License

MIT

GitHub Repository

The source code for this package is available on github.

Author

line-number-finder was created by codingKrills.

Package Sidebar

Install

npm i get-line-number

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

1.96 kB

Total Files

3

Last publish

Collaborators

  • codingkrills