Get current filename, function name and line number
npm install current-line





Get current filename, function name and line number
``js
const currentLine = require("current-line");
function go() {
console.log(currentLine.get());
}
go();
`
Output:
`json`
{
"method": "go",
"line": 4,
"file": "/home/user/current-line/tests/sample.js",
"filename": "sample"
}
---
_Last stack item_
``
currentLine.get() :
_Stack item by index_
``
currentLine.get(1) :
_All Stack item_
```
currentLine.all() :
#### Others documentations