Skip to content

node module for returning caller filename, and line number.

Notifications You must be signed in to change notification settings

taku-o/caller-position

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caller-position -- node module to get caller filename, and line number.

===========================================

Description

get caller filename, and line number. to use for debug, and testing.

Install

npm install --save git+https://github.com/taku-o/caller-position#master

Usage

As a node module:

var caller = require('caller-position');

console.log(caller.caller());

console.log(caller.position());

returning value example are,

{ filename_base: 'test.js', line_no: '3', line_pos: '20' }

test.js:3

About

node module for returning caller filename, and line number.

Resources

Stars

Watchers

Forks