Updated script that can be controled by Nodejs web app

This commit is contained in:
mac OS
2024-11-25 12:24:18 +07:00
parent c440eda1f4
commit 8b0ab2bd3a
8662 changed files with 1803808 additions and 34 deletions

4
node_modules/callsite/.npmignore generated vendored Normal file
View File

@ -0,0 +1,4 @@
support
test
examples
*.sock

10
node_modules/callsite/History.md generated vendored Normal file
View File

@ -0,0 +1,10 @@
1.0.0 / 2013-01-24
==================
* remove lame magical getters
0.0.1 / 2010-01-03
==================
* Initial release

6
node_modules/callsite/Makefile generated vendored Normal file
View File

@ -0,0 +1,6 @@
test:
@./node_modules/.bin/mocha \
--require should
.PHONY: test

44
node_modules/callsite/Readme.md generated vendored Normal file
View File

@ -0,0 +1,44 @@
# callstack
Access to v8's "raw" `CallSite`s.
## Installation
$ npm install callsite
## Example
```js
var stack = require('callsite');
foo();
function foo() {
bar();
}
function bar() {
baz();
}
function baz() {
console.log();
stack().forEach(function(site){
console.log(' \033[36m%s\033[90m in %s:%d\033[0m'
, site.getFunctionName() || 'anonymous'
, site.getFileName()
, site.getLineNumber());
});
console.log();
}
```
## Why?
Because you can do weird, stupid, clever, wacky things such as:
- [better-assert](https://github.com/visionmedia/better-assert)
## License
MIT

10
node_modules/callsite/index.js generated vendored Normal file
View File

@ -0,0 +1,10 @@
module.exports = function(){
var orig = Error.prepareStackTrace;
Error.prepareStackTrace = function(_, stack){ return stack; };
var err = new Error;
Error.captureStackTrace(err, arguments.callee);
var stack = err.stack;
Error.prepareStackTrace = orig;
return stack;
};

11
node_modules/callsite/package.json generated vendored Normal file
View File

@ -0,0 +1,11 @@
{
"name": "callsite"
, "version": "1.0.0"
, "description": "access to v8's CallSites"
, "keywords": ["stack", "trace", "line"]
, "author": "TJ Holowaychuk <tj@vision-media.ca>"
, "dependencies": {}
, "devDependencies": { "mocha": "*", "should": "*" }
, "main": "index"
, "engines": { "node": "*" }
}