{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["stacktrace","v8","callsite","callsites","stack","trace","function","file","line","debug"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Get callsites from the V8 stack trace API","readme":"# callsites [![Build Status](https://travis-ci.org/sindresorhus/callsites.svg?branch=master)](https://travis-ci.org/sindresorhus/callsites)\n\n> Get callsites from the [V8 stack trace API](https://github.com/v8/v8/wiki/Stack-Trace-API)\n\n\n## Install\n\n```\n$ npm install --save callsites\n```\n\n\n## Usage\n\n```js\nconst callsites = require('callsites');\n\nfunction unicorn() {\n\tconsole.log(callsites()[0].getFileName());\n\t//=> '/Users/sindresorhus/dev/callsites/test.js'\n}\n\nunicorn();\n```\n\n\n## API\n\nReturns an array of callsite objects with the following methods:\n\n- `getTypeName`: returns the type of this as a string. This is the name of the function stored in the constructor field of this, if available, otherwise the object's [[Class]] internal property.\n- `getFunctionName`: returns the name of the current function, typically its name property. If a name property is not available an attempt will be made to try to infer a name from the function's context.\n- `getMethodName`: returns the name of the property of this or one of its prototypes that holds the current function\n- `getFileName`: if this function was defined in a script returns the name of the script\n- `getLineNumber`: if this function was defined in a script returns the current line number\n- `getColumnNumber`: if this function was defined in a script returns the current column number\n- `getEvalOrigin`: if this function was created using a call to eval returns a CallSite object representing the location where eval was called\n- `isToplevel`: is this a top-level invocation, that is, is this the global object?\n- `isEval`: does this call take place in code defined by a call to eval?\n- `isNative`: is this call in native V8 code?\n- `isConstructor`: is this a constructor call?\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","repository":{"type":"git","url":"git+https://github.com/sindresorhus/callsites.git"},"users":{"servel333":true,"alvis":true},"bugs":{"url":"https://github.com/sindresorhus/callsites/issues"},"license":"MIT","versions":{"0.1.0":{"name":"callsites","version":"0.1.0","description":"Get callsites from the V8 stack trace API","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/callsites"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["callsites","callsite","v8","stacktrace","stack","trace","function","file","line","debug"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/callsites/issues"},"homepage":"https://github.com/sindresorhus/callsites","_id":"callsites@0.1.0","dist":{"shasum":"2b856278a6948e4afe55f2600d05f89bd88b492a","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/callsites/-/callsites-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"0.2.0":{"name":"callsites","version":"0.2.0","description":"Get callsites from the V8 stack trace API","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/callsites"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["callsites","callsite","v8","stacktrace","stack","trace","function","file","line","debug"],"devDependencies":{"mocha":"*"},"bugs":{"url":"https://github.com/sindresorhus/callsites/issues"},"homepage":"https://github.com/sindresorhus/callsites","_id":"callsites@0.2.0","dist":{"shasum":"afab96262910a7f33c19a5775825c69f34e350ca","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/callsites/-/callsites-0.2.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.0":{"name":"callsites","version":"1.0.0","description":"Get callsites from the V8 stack trace API","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/callsites"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"files":["index.js"],"keywords":["callsites","callsite","v8","stacktrace","stack","trace","function","file","line","debug"],"devDependencies":{"mocha":"*"},"gitHead":"a5f41b0b95a6b8763cb392def8e07e7a88670b02","bugs":{"url":"https://github.com/sindresorhus/callsites/issues"},"homepage":"https://github.com/sindresorhus/callsites","_id":"callsites@1.0.0","_shasum":"02563b10ed31f2ebd95893a776f0b3d95a6b15b8","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"02563b10ed31f2ebd95893a776f0b3d95a6b15b8","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/callsites/-/callsites-1.0.0.tgz"},"directories":{}},"1.0.1":{"name":"callsites","version":"1.0.1","description":"Get callsites from the V8 stack trace API","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/callsites.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["stacktrace","v8","callsite","callsites","stack","trace","function","file","line","debug"],"devDependencies":{"ava":"*","xo":"*"},"gitHead":"c18e4ce8ce38fb0e628f9a423471c9bac991e42a","bugs":{"url":"https://github.com/sindresorhus/callsites/issues"},"homepage":"https://github.com/sindresorhus/callsites#readme","_id":"callsites@1.0.1","_shasum":"c14c24188ce8e1d6a030b4c3c942e6ba895b6a1a","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c14c24188ce8e1d6a030b4c3c942e6ba895b6a1a","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/callsites/-/callsites-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/callsites-1.0.1.tgz_1462973676632_0.5280761285685003"},"directories":{}},"2.0.0":{"name":"callsites","version":"2.0.0","description":"Get callsites from the V8 stack trace API","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/callsites.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["stacktrace","v8","callsite","callsites","stack","trace","function","file","line","debug"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"76081d07c93d0ec3657d2be3c300bb21f45cf9db","bugs":{"url":"https://github.com/sindresorhus/callsites/issues"},"homepage":"https://github.com/sindresorhus/callsites#readme","_id":"callsites@2.0.0","_shasum":"06eb84f00eea413da86affefacbffb36093b3c50","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.5.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"06eb84f00eea413da86affefacbffb36093b3c50","tarball":"http://nexus.dui88.com:8081/nexus/content/groups/npm-all/callsites/-/callsites-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/callsites-2.0.0.tgz_1472344208744_0.7568928482942283"},"directories":{}}},"name":"callsites","time":{"modified":"2017-06-08T11:01:03.701Z","created":"2014-04-19T10:11:43.316Z","0.1.0":"2014-04-19T10:11:43.316Z","0.2.0":"2014-04-19T10:12:18.747Z","1.0.0":"2014-08-17T18:47:35.372Z","1.0.1":"2016-05-11T13:34:39.471Z","2.0.0":"2016-08-28T00:30:10.498Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/callsites#readme"}