Retrieve the source location of a function in Node 8+.
npm install get-function-locationA utility function that provides access to a given function's source location.
```
$ npm install get-function-location
`js
const getFunctionLocation = require('get-function-location');
function someFunction() {};
let result = await getFunctionLocation(someFunction);
// => { source: 'file:///Users/rjackson/src/rwjblue/get-function-location/this-file.js', line: 3, column: 22 }
`
This package relies on functionality added in Node 8 to gather function
location information. When using in older Node versions, getFunctionLocationnull`.
will return a promise that resolves to
MIT © Robert Jackson