-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
27 lines (27 loc) · 1.13 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"name": "callsite",
"version": "1.0.0",
"description": "access to v8's CallSites",
"keywords": [
"stack",
"trace",
"line"
],
"author": {
"name": "TJ Holowaychuk",
"email": "tj@vision-media.ca"
},
"dependencies": {},
"devDependencies": {
"mocha": "*",
"should": "*"
},
"main": "index",
"engines": {
"node": "*"
},
"readme": "# callstack\n\n Access to v8's \"raw\" `CallSite`s.\n\n## Installation\n\n $ npm install callsite\n\n## Example\n\n```js\nvar stack = require('callsite');\n\nfoo();\n\nfunction foo() {\n bar();\n}\n\nfunction bar() {\n baz();\n}\n\nfunction baz() {\n console.log();\n stack().forEach(function(site){\n console.log(' \\033[36m%s\\033[90m in %s:%d\\033[0m'\n , site.getFunctionName() || 'anonymous'\n , site.getFileName()\n , site.getLineNumber());\n });\n console.log();\n}\n```\n\n## Why?\n\n Because you can do weird, stupid, clever, wacky things such as:\n\n - [better-assert](https://github.com/visionmedia/better-assert)\n\n## License\n\n MIT\n",
"readmeFilename": "Readme.md",
"_id": "callsite@1.0.0",
"_from": "callsite@~1.0.0"
}