{"_id":"caller","_rev":"15-98c7b6a83a72cea1ada483881cf46e71","name":"caller","description":"@substack's caller.js as a module","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"caller","version":"0.0.1","description":"@substack's caller.js as a module","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/totherik/caller.git"},"keywords":["caller","file","require"],"author":{"name":"Erik Toth","email":"totherik@gmail.com"},"license":"MIT","devDependencies":{"tape":"~2.3.2"},"gitHead":"15bef0805246629cc89fb71ded29e674009ffc45","dependencies":{"tape":"~2.3.2"},"bugs":{"url":"https://github.com/totherik/caller/issues"},"homepage":"https://github.com/totherik/caller","_id":"caller@0.0.1","dist":{"shasum":"f37a1d6ea10e829d94721ae29a90bb4fb52ab767","tarball":"https://registry.npmjs.org/caller/-/caller-0.0.1.tgz","integrity":"sha512-bxzSLUw/qC1VPqzUdi/a9S6rNMIAE1qkKJ/Bs3OA8O1TnclxjhbXOzBJclfOHHU+z/H/DAAjjbnjvYo6xYlxjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGtxKt1SDwx2qH+PThqp63UV6Y9eyunIQE1Q/hWXGdlwIhAKdsvwS6E00D/MMqIuFGjVlIyp6nNmiOWonjgrL3jSTM"}]},"_from":".","_npmVersion":"1.3.17","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"}]},"1.0.0":{"name":"caller","version":"1.0.0","description":"@substack's caller.js as a module","main":"index.js","directories":{"test":"test"},"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/totherik/caller.git"},"keywords":["caller","file","require"],"author":{"name":"Erik Toth","email":"totherik@gmail.com"},"license":"MIT","devDependencies":{"tape":"~2.3.2"},"gitHead":"15bef0805246629cc89fb71ded29e674009ffc45","dependencies":{"tape":"~2.3.2"},"bugs":{"url":"https://github.com/totherik/caller/issues"},"homepage":"https://github.com/totherik/caller","_id":"caller@1.0.0","_shasum":"9e454286ed5b1e680336af306f3fb92ee3b7d3d3","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"}],"dist":{"shasum":"9e454286ed5b1e680336af306f3fb92ee3b7d3d3","tarball":"https://registry.npmjs.org/caller/-/caller-1.0.0.tgz","integrity":"sha512-Heu87uh7l78Sgr476r0MNqeJvccSm9uzSypc+JkPM9Lznb8ULvCz/Ckr8DpwKHnKFQVdSTjBBwcVJV1oiHfd0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3y5VwLI8kzJezn2qFmlXvsGw6JFDxZgZNVK0iN7wTlQIhAPvMGLVnHlxETjLhJpNIlup+TQbLb2uxM1sPJC4RnfSB"}]}},"1.0.1":{"name":"caller","version":"1.0.1","description":"@substack's caller.js as a module","main":"index.js","files":["index.js"],"scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/totherik/caller.git"},"keywords":["caller","file","require"],"author":{"name":"Erik Toth","email":"totherik@gmail.com"},"license":"MIT","devDependencies":{"tape":"~2.3.2"},"gitHead":"15bef0805246629cc89fb71ded29e674009ffc45","dependencies":{},"bugs":{"url":"https://github.com/totherik/caller/issues"},"homepage":"https://github.com/totherik/caller","_id":"caller@1.0.1","_shasum":"b851860f70e195db3d277395aa1a7e23ea30ecf5","_from":".","_npmVersion":"2.6.1","_nodeVersion":"0.10.33","_npmUser":{"name":"totherik","email":"totherik@gmail.com"},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"}],"dist":{"shasum":"b851860f70e195db3d277395aa1a7e23ea30ecf5","tarball":"https://registry.npmjs.org/caller/-/caller-1.0.1.tgz","integrity":"sha512-tfj+ErW/0SbOyfoXriRtdjCMTwrZAvLXj2jHqlh8YCcgoZVzUI22E/JJLxbiuZqDs0Ke7BuRrHTVuxm3EwYbJQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcBFqMJj1wRx6O+cLnU1ISEWyzSSasnT4iuHoFkTTEcwIhAMpoYpkuj5UubtH8jJiul0fS/SXWPtvc//vC/RxyOUzH"}]},"directories":{}},"1.1.0":{"name":"caller","version":"1.1.0","description":"@substack's caller.js as a module","main":"index.js","scripts":{"test":"tape test/*.js"},"repository":{"type":"git","url":"git://github.com/totherik/caller.git"},"keywords":["caller","file","require"],"author":{"name":"Erik Toth","email":"totherik@gmail.com"},"license":"MIT","devDependencies":{"tape":"~2.3.2"},"gitHead":"15bef0805246629cc89fb71ded29e674009ffc45","dependencies":{},"bugs":{"url":"https://github.com/totherik/caller/issues"},"homepage":"https://github.com/totherik/caller#readme","_id":"caller@1.1.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-n+21IZC3j06YpCWaxmUy5AnVqhmCIM2bQtqQyy00HJlmStRt6kwDX5F9Z97pqwAB+G/tgSz6q/kUBbNyQzIubw==","shasum":"46228555cfecb57d82bcd173b493f87cee9680fe","tarball":"https://registry.npmjs.org/caller/-/caller-1.1.0.tgz","fileCount":5,"unpackedSize":3879,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKj6PACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp9ug/7B+/25bbUv9DeQs10U6BaJkMnTgW8XznnJ89wm1KWzfbGZ05Y\r\nvqr0MjMvVhvZRs6jTU88JNntq9+UQCo/6w+8IBv8FmIlOhMUkYUe4SAWxWEf\r\niqUGa19QvEt++gUYpPTl1cbY5gBADmS5RYd77Erdu1blH503iVrqwS8Kbe1q\r\nmqN8kSiPU/GLIX7EXDaTUwIVkg2QmKEDmsvMF1cYI8I+VAu3ndjINqDWfGBS\r\nPv1cloP6D66R2S3RndMOydzcl1o16GUoTegLyYhg3OzdCdbwN4C6RsclWRt8\r\nV3O1hn0ceqg2h51DRb+VQ8IIhGHp+RE8dvCzXJKec1QJIRXqeKf1G8RW6lX1\r\nEB59ndC6dVCqUuOdWcppAqv2SQMVOUlX603NOI1R7ApR8fEcP6RqwLV6/ITj\r\n6PTtBIMXRa9du6fdcEp0wqAozOw40aUMK0sCu5SVf7b6sZQFzcKeqBDwI4gf\r\nij12pOHbbqjT4VPyxig98xfScqN8Gaa6LkUk9aO32HTn+iGKnqh3OcXFGrbV\r\n7w/0hlo7HPtIKt2UlV+vkee99gd9bUzpur9UVgcXlySFi8LO1C964r+pJgBr\r\nimxbE6v/r4pL5GkM8u7Oq6UfKlFkqsuAzd+iqNDqF7fjdCs9v+CJUSNwBm7q\r\nCqDdLa1DA9RQ2OKO9VXnb2/mWtVVgmbtLU0=\r\n=Vnm7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVSt40bHDVMST3MXQvUNRIZoeGMNIxwXU26XV4M3pb3wIgHPmoZFdVYHEGvmOoCdJhk7f9SbK6tvKjBTwAe+dVevU="}]},"_npmUser":{"name":"krakenjs-user","email":"medelman@paypal.com"},"directories":{},"maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"krakenjs-user","email":"medelman@paypal.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/caller_1.1.0_1646935695230_0.8221706663990187"},"_hasShrinkwrap":false}},"readme":"#### caller\n\nFigure out your caller (thanks to @substack).\n\n##### Initialization Time Caller\n```javascript\n// foo.js\n\nvar bar = require('bar');\n```\n\n```javascript\n// bar.js\n\nvar caller = require('caller');\nconsole.log(caller()); // `/path/to/foo.js`\n```\n\n##### Runtime Caller\n```javascript\n// foo.js\n\nvar bar = require('bar');\nbar.doWork();\n```\n\n```javascript\n// bar.js\n\nvar caller = require('caller');\n\nexports.doWork = function () {\n    console.log(caller());  // `/path/to/foo.js`\n};\n```\n\n### Depth\n\nCaller also accepts a `depth` argument for tracing back further (defaults to `1`).\n\n```javascript\n// foo.js\n\nvar bar = require('bar');\nbar.doWork();\n```\n\n```javascript\n// bar.js\n\nvar baz = require('baz');\n\nexports.doWork = function () {\n    baz.doWork();\n};\n```\n\n```javascript\n// baz.js\n\nvar caller = require('caller');\n\nexports.doWork = function () {\n    console.log(caller(2));  // `/path/to/foo.js`\n};\n```\n","maintainers":[{"name":"totherik","email":"totherik@gmail.com"},{"name":"krakenjs-user","email":"medelman@paypal.com"}],"time":{"modified":"2023-07-10T23:19:17.605Z","created":"2013-12-22T20:28:31.651Z","0.0.1":"2013-12-22T20:28:33.058Z","1.0.0":"2014-09-12T15:16:22.247Z","1.0.1":"2015-09-27T01:21:24.985Z","1.1.0":"2022-03-10T18:08:15.357Z"},"author":{"name":"Erik Toth","email":"totherik@gmail.com"},"repository":{"type":"git","url":"git://github.com/totherik/caller.git"},"homepage":"https://github.com/totherik/caller#readme","keywords":["caller","file","require"],"bugs":{"url":"https://github.com/totherik/caller/issues"},"license":"MIT","readmeFilename":"README.md","users":{"j3kz":true,"erikvold":true,"pagoru":true,"flumpus-dev":true}}